summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/etc/functions
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-04-10 01:03:16 +0200
committerDirk von Suchodoletz2006-04-10 01:03:16 +0200
commitef5048eff5cfa172d501fb18ad5a4e2319a42916 (patch)
treef01dd009a06926db9eb641de73cbd318f695693b /initrd/initrd-stuff/etc/functions
parentfixed cowloop initialization part ... (diff)
downloadcore-ef5048eff5cfa172d501fb18ad5a4e2319a42916.tar.gz
core-ef5048eff5cfa172d501fb18ad5a4e2319a42916.tar.xz
core-ef5048eff5cfa172d501fb18ad5a4e2319a42916.zip
code cleanups and small fixes ...
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@175 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/etc/functions')
-rw-r--r--initrd/initrd-stuff/etc/functions56
1 files changed, 28 insertions, 28 deletions
diff --git a/initrd/initrd-stuff/etc/functions b/initrd/initrd-stuff/etc/functions
index 2f10f180..50c6211c 100644
--- a/initrd/initrd-stuff/etc/functions
+++ b/initrd/initrd-stuff/etc/functions
@@ -7,34 +7,34 @@
#
# Copyright: (c) 2006 - RZ Universitaet Freiburg
#
-# Version: 0.4.2b
+# Version: 0.4.2c
#######################################################################
# generate events with the sysfs trigger
trigger_device_events () {
- list=$(echo /sys/bus/*/devices/*/uevent)
- list="$list $(echo /sys/class/*/*/uevent)"
- list="$list $(echo /sys/block/*/uevent /sys/block/*/*/uevent)"
- for i in $list; do
- case "$i" in
- */device/uevent|*\**)
- continue
- ;;
- */class/mem/*|*/class/tty/*)
- first="$first $i"
- ;;
- */block/md*)
- last="$last $i"
- ;;
- */*)
- default="$default $i"
- ;;
- esac
- done
- # trigger the sorted events
- for i in $first $default $last; do
- echo "add" > "$i"
- done
+ list=$(echo /sys/bus/*/devices/*/uevent)
+ list="$list $(echo /sys/class/*/*/uevent)"
+ list="$list $(echo /sys/block/*/uevent /sys/block/*/*/uevent)"
+ for i in $list; do
+ case "$i" in
+ */device/uevent|*\**)
+ continue
+ ;;
+ */class/mem/*|*/class/tty/*)
+ first="$first $i"
+ ;;
+ */block/md*)
+ last="$last $i"
+ ;;
+ */*)
+ default="$default $i"
+ ;;
+ esac
+ done
+ # trigger the sorted events
+ for i in $first $default $last; do
+ echo "add" > "$i"
+ done
}
#######################################################################
@@ -201,7 +201,7 @@ fi
# dhcp client
rundhcp ()
{
-local vci=$1
+local vci="$1"
for dhcp in dhclient dhcpcd pump ipconfig none; do
test -x /bin/$dhcp && break;
done
@@ -238,7 +238,7 @@ case $dhcp in
*)
;;
esac
-echo "finished" > /tmp/dhcp-done
+echo "dhcp finished" > /tmp/dhcp-done
}
#######################################################################
@@ -281,7 +281,7 @@ else
cfgfile=$cfgfile"."
done
fi
-echo "finished" > /tmp/file-done
+echo "tftp finished" > /tmp/file-done
}
#######################################################################
@@ -386,7 +386,7 @@ sed 's/:.*/:!:13078:0:99999:7:::/;/^root.*/d' /tmp/newpasswd \
# localization simply derived from $language variable set in
# machine-setup or other sources - mostly taken from knoppix
localization () {
-country=$1
+country="$1"
CONSOLE_FONT="lat9w-16.psfu"
case "$country" in
# German version