projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check for files and umount only if you can mount it first.
[live-boot-grml.git]
/
scripts
/
live-bottom
/
23etc_modules
diff --git
a/scripts/live-bottom/23etc_modules
b/scripts/live-bottom/23etc_modules
index
6eec342
..
2240a1b
100755
(executable)
--- a/
scripts/live-bottom/23etc_modules
+++ b/
scripts/live-bottom/23etc_modules
@@
-1,30
+1,36
@@
-#!
/bin/sh
+#!/bin/sh
-PREREQ=""
-DESCRIPTION="Preconfiguring /etc/modules..."
+#set -e
-. /scripts/live-functions
+# initramfs-tools header
+
+PREREQ=""
prereqs()
{
prereqs()
{
- echo "$
PREREQ
"
+ echo "$
{PREREQ}
"
}
}
-case $1 in
-# get pre-requisites
-prereqs)
- prereqs
- exit 0
- ;;
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
esac
esac
-log_begin_msg "$DESCRIPTION"
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Preconfiguring /etc/modules"
+
+# live-initramfs script
-case "$DPKG_ARCH" in
# load the right modules
# load the right modules
-powerpc|ppc64)
- echo snd_powermac >> /root/etc/modules
- ;;
+case "${DPKG_ARCH}" in
+ powerpc|ppc64)
+ echo snd_powermac >> /root/etc/modules
+ ;;
esac
log_end_msg
esac
log_end_msg