From 2b557aee01840787d6f2d6659be1d6c285ee8b27 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Wed, 12 Dec 2012 12:54:52 +0100 Subject: plymouth usr/ prefix fix, systemd conditional adding of repository, and minor tweaks§ --- remote/tools/systemd/systemd.build | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'remote/tools/systemd') diff --git a/remote/tools/systemd/systemd.build b/remote/tools/systemd/systemd.build index 5b361472..922b7fcb 100644 --- a/remote/tools/systemd/systemd.build +++ b/remote/tools/systemd/systemd.build @@ -12,9 +12,14 @@ fetch_source () { install_dependencies() { # quick fix for missing libkmod repo... - add-apt-repository --yes ppa:pitti/systemd - apt-get update --force-yes - apt-get install --force-yes $DEPS + libkmod=$(apt-cache search libkmod-dev) + if [[ -z $libkmod ]]; + then + echo "libkmod cannot be found. Adding ppa:pitti/systemd" + add-apt-repository --yes ppa:pitti/systemd + apt-get update --force-yes + fi + apt-get install -y $DEPS } build () { -- cgit v1.2.3-55-g7522