diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-10-24 14:12:34 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-10-24 19:33:54 +0300 |
commit | 12a01f734b0bf33bfd726d1e4b33b002284a25ba (patch) | |
tree | b20f6e9c778feb77a837055ce9b65d80db2e9957 | |
parent | e8290993c8f52719613dde85881fe87723b7de54 (diff) | |
download | alpine-conf-12a01f734b0bf33bfd726d1e4b33b002284a25ba.tar.bz2 alpine-conf-12a01f734b0bf33bfd726d1e4b33b002284a25ba.tar.xz |
update-kernel: include dahdi and xtables-addons kernel modules
-rw-r--r-- | update-kernel.in | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/update-kernel.in b/update-kernel.in index 4ab4cb5..30d5e43 100644 --- a/update-kernel.in +++ b/update-kernel.in @@ -56,9 +56,15 @@ FLAVOR=$(uname -r | cut -d - -f 3-) TMPDIR=$(mktemp -dt $SCRIPT.XXXXXX) ROOT=$TMPDIR/root -apk add -qU -p $ROOT --initdb --no-scripts --arch $ARCH \ - --keys-dir /etc/apk/keys --repositories-file /etc/apk/repositories \ - alpine-base dahdi-linux linux-$FLAVOR linux-firmware +_apk() { + apk add -q -p $ROOT --no-scripts --arch $ARCH --keys-dir /etc/apk/keys \ + --repositories-file /etc/apk/repositories $* +} + +_apk -U --initdb alpine-base linux-$FLAVOR linux-firmware +_apk dahdi-linux dahdi-linux-$FLAVOR || : +_apk xtables-addons-$FLAVOR || : + KVER=$(ls $ROOT/lib/modules) depmod -b $ROOT $KVER |