summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/initscripts
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2006-11-27 04:32:02 +0000
committerRod Whitby <rod@whitby.id.au>2006-11-27 04:32:02 +0000
commitae3e49711d031281251d778d66e96624c492e356 (patch)
tree1eb198cf1ceeb6e113b24d0558240f9f719a36d7 /packages/slugos-init/files/initscripts
parentfaa37f5b50f6f2da6774870c16d058cabdac97c5 (diff)
slugos-init: Now loades IDE kernel modules for nas100d
Diffstat (limited to 'packages/slugos-init/files/initscripts')
-rw-r--r--packages/slugos-init/files/initscripts/umountinitrd.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/packages/slugos-init/files/initscripts/umountinitrd.sh b/packages/slugos-init/files/initscripts/umountinitrd.sh
index 9cb1f7a25d..2798fe5985 100644
--- a/packages/slugos-init/files/initscripts/umountinitrd.sh
+++ b/packages/slugos-init/files/initscripts/umountinitrd.sh
@@ -5,20 +5,27 @@
# then the /initrd is mounted and we want to remount that
# ro - this works round the shutdown -r hang problem
. /etc/default/functions
+
+case "$(machine)" in
+nslu2)
+ ffspart="Flashdisk";;
+*)
+ ffspart="filesystem";;
+esac
+
while read device directory remainder
do
case "$directory" in
/mnt) echo "InitRD: unmount initrd on /mnt" >&2
umount /mnt;;
/initrd)# need the device for a remount
- ffspart=Flashdisk
ffsdev="$(mtblockdev $ffspart)"
- echo "InitRD: remount $ffdev read-only on /initrd" >&2
+ echo "Remounting $ffsdev read-only on /initrd" >&2
if test -n "$ffsdev" -a -b "$ffsdev"
then
mount -o remount,ro "$ffsdev" /initrd
else
- echo "Flashdisk: $ffsdev: flash device not found" >&2
+ echo "$ffspart: $ffsdev: flash device not found" >&2
fi;;
esac
done </proc/mounts