slugos-init: Now loades IDE kernel modules for nas100d
authorRod Whitby <rod@whitby.id.au>
Mon, 27 Nov 2006 04:32:02 +0000 (04:32 +0000)
committerRod Whitby <rod@whitby.id.au>
Mon, 27 Nov 2006 04:32:02 +0000 (04:32 +0000)
packages/slugos-init/files/initscripts/umountinitrd.sh
packages/slugos-init/files/modulefunctions
packages/slugos-init/slugos-init_0.10.bb

index 9cb1f7a..2798fe5 100644 (file)
@@ -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
index d7c2b97..1073dae 100644 (file)
@@ -13,6 +13,7 @@ loaddiskmods(){
                modprobe ohci-hcd
                ;;
             nas100d)
+                modprobe pata-artop
                 modprobe ehci-hcd
                 modprobe uhci-hcd
                 ;;
index de3b615..54c1993 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "required"
 LICENSE = "GPL"
 DEPENDS = "base-files devio"
 RDEPENDS = "busybox devio"
-PR = "r73"
+PR = "r74"
 
 SRC_URI = "file://boot/flash \
           file://boot/disk \