summaryrefslogtreecommitdiff
path: root/mkmodloop
diff options
context:
space:
mode:
authorDubiousjim <dubiousjim@gmail.com>2013-07-05 00:21:10 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-08 14:47:11 +0000
commit607124c60c1e5b65dbe78d65269a75cc980e421c (patch)
tree05f87ae0558bd1b94ff8537cdfdebf369778265f /mkmodloop
parent9e94ea184410e57649bad2f1f5ab1d5787ef9657 (diff)
downloadabuild-607124c60c1e5b65dbe78d65269a75cc980e421c.tar.gz
abuild-607124c60c1e5b65dbe78d65269a75cc980e421c.tar.bz2
abuild-607124c60c1e5b65dbe78d65269a75cc980e421c.tar.xz
abuild-607124c60c1e5b65dbe78d65269a75cc980e421c.zip
remove unused files
as discussed in http://lists.alpinelinux.org/alpine-devel/3122.html
Diffstat (limited to 'mkmodloop')
-rw-r--r--mkmodloop37
1 files changed, 0 insertions, 37 deletions
diff --git a/mkmodloop b/mkmodloop
deleted file mode 100644
index f85b628..0000000
--- a/mkmodloop
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-
-msg() {
- echo "==>" $@
-}
-
-die() {
- echo $@
- exit 1
-}
-
-image=$PWD/modloop
-dest=$PWD/modloop.cmg
-init=init
-
-
-kernel=$1
-# if no kernel specified, then guess...
-if [ -z "$kernel" ]; then
- kernel=$(ls /lib/modules 2>/dev/null | tail -n 1)
-fi
-
-if [ ! -d /lib/modules/$kernel ]; then
- die "modules dir /lib/modules/$kernel was not found"
-fi
-msg "Using kernel $kernel"
-
-
-rm -rf "$image"
-mkdir -p "$image/lib/modules"
-cp -alf /lib/modules/$kernel $image/lib/modules/
-
-depmod -b "$image" $kernel
-
-rm -f $image/lib/modules/$kernel/source $image/lib/modules/$kernel/build
-
-mkcramfs $image/lib $dest