diff options
| author | michael | 2013-02-20 19:05:21 +0100 |
|---|---|---|
| committer | michael | 2013-02-20 19:05:21 +0100 |
| commit | c3b406279e50d28942f9ff0de4ef994640a58eed (patch) | |
| tree | 79b707f1d91973b817253be499dc659987ab230c /remote/tools/systemd/systemd.build | |
| parent | add mksquashfs to DEPS for mltk build core (diff) | |
| download | tm-scripts-c3b406279e50d28942f9ff0de4ef994640a58eed.tar.gz tm-scripts-c3b406279e50d28942f9ff0de4ef994640a58eed.tar.xz tm-scripts-c3b406279e50d28942f9ff0de4ef994640a58eed.zip | |
install libkmod from source
Diffstat (limited to 'remote/tools/systemd/systemd.build')
| -rw-r--r-- | remote/tools/systemd/systemd.build | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/remote/tools/systemd/systemd.build b/remote/tools/systemd/systemd.build index 57c0f6b4..a967e6a9 100644 --- a/remote/tools/systemd/systemd.build +++ b/remote/tools/systemd/systemd.build @@ -12,13 +12,26 @@ fetch_source () { install_dependencies() { # quick fix for missing libkmod repo... - 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 + #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 + # install libkmod from source + libkmod-version=kmod-12 + if [ ! -d $libkmod-version ]; then + wget http://www.kernel.org/pub/linux/utils/kernel/kmod/${libkmod-version}.tar.gz + tar xJf $libkmod-version.tar.gz + rm $libkmod-version.tar.gz + cd $libkmod-version + ./configure + make -j5 + make install + cd - fi + apt-get install -y $DEPS &>/dev/null } |
