[OpenWrt-Devel] [PATCH] [IMPORTANT]: Preinit doesn't create /dev/null
This is because I foolishly used /dev/null before it was created, so an empty file was created. This prevented the actual device node from being created. The attached patch fixes that. -- And that's my crabbing done for the day. Got it out of the way early, now I have the rest of the afternoon to sniff fragrant tea-roses or strangle cute bunnies or something. -- Michael Devore GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C http://gnupg.org The C Shore (Daniel Dickinson's Website) http://cshore.is-a-geek.com Index: package/base-files/files/lib/preinit/20_device_fs_mount === --- package/base-files/files/lib/preinit/20_device_fs_mount (revision 19468) +++ package/base-files/files/lib/preinit/20_device_fs_mount (working copy) @@ -15,7 +15,7 @@ } choose_device_fs() { -if grep devfs /proc/filesystems /dev/null; then +if grep devfs /proc/filesystems; then do_mount_devfs elif [ -x /sbin/hotplug2 ]; then do_mount_hotplug signature.asc Description: This is a digitally signed message part ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [IMPORTANT]: Preinit doesn't create /dev/null
Le dimanche 31 janvier 2010 21:08:12, Daniel Dickinson a écrit : This is because I foolishly used /dev/null before it was created, so an empty file was created. This prevented the actual device node from being created. The attached patch fixes that. Applied in r19472, thanks! -- Best regards, Florian Fainelli Email: flor...@openwrt.org Web: http://openwrt.org IRC: [florian] on irc.freenode.net --- signature.asc Description: This is a digitally signed message part. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [IMPORTANT]: Preinit doesn't create /dev/null
Hi, this is only 50% of the work ;) /dev/null is still a normal file ... here is the rest of the fix to solve this ... greets Am Sonntag 31 Januar 2010 22:01:35 schrieb Florian Fainelli: Le dimanche 31 janvier 2010 21:08:12, Daniel Dickinson a écrit : This is because I foolishly used /dev/null before it was created, so an empty file was created. This prevented the actual device node from being created. The attached patch fixes that. Applied in r19472, thanks! diff --git a/package/base-files/files/lib/preinit/30_device_fs_daemons b/package/base-files/files/lib/preinit/30_device_fs_daemons index 5a3aaf3..68a3769 100644 --- a/package/base-files/files/lib/preinit/30_device_fs_daemons +++ b/package/base-files/files/lib/preinit/30_device_fs_daemons @@ -23,7 +23,7 @@ init_udev() { init_device_fs() { HOTPLUG= -if grep devfs /proc/filesystems /dev/null; then +if grep -q devfs /proc/filesystems ; then init_devfs elif [ -x /sbin/hotplug2 ]; then init_hotplug2 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel