summaryrefslogtreecommitdiffstats
path: root/remote/tools/systemd
diff options
context:
space:
mode:
authorJonathan Bauer2012-12-12 12:54:52 +0100
committerJonathan Bauer2012-12-12 12:54:52 +0100
commit2b557aee01840787d6f2d6659be1d6c285ee8b27 (patch)
tree365373a3dc3480dabb587ad57a1a182addee2321 /remote/tools/systemd
parentdebug shell fix (diff)
downloadtm-scripts-2b557aee01840787d6f2d6659be1d6c285ee8b27.tar.gz
tm-scripts-2b557aee01840787d6f2d6659be1d6c285ee8b27.tar.xz
tm-scripts-2b557aee01840787d6f2d6659be1d6c285ee8b27.zip
plymouth usr/ prefix fix, systemd conditional adding of repository, and minor tweaks§
Diffstat (limited to 'remote/tools/systemd')
-rw-r--r--remote/tools/systemd/systemd.build11
1 files changed, 8 insertions, 3 deletions
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 () {