From 4a64818533733e194138a45656aaf14d5a123e98 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 3 Feb 2006 09:02:41 +0000 Subject: Update to udev 084 from OE. This adds a coldplug script to emulate the calls necessary to load devices already inserted into the system at boot. It also adds a network interface control script. git-svn-id: https://svn.o-hand.com/repos/poky@247 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- openembedded/packages/udev/files/init | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'openembedded/packages/udev/files/init') diff --git a/openembedded/packages/udev/files/init b/openembedded/packages/udev/files/init index 6ad6fd5811..1022b40c89 100755 --- a/openembedded/packages/udev/files/init +++ b/openembedded/packages/udev/files/init @@ -52,9 +52,19 @@ mount_tmpfs() { mkdir -p /dev/.static/dev chmod 700 /dev/.static/ - # Make sure it's busybox mount we're using. util-linux mount doesn't handle - # -o move. - busybox mount -n -o move /etc/udev /dev/.static/dev + # The mount options in busybox are non-standard... + if test -x /bin/mount.util-linux + then + /bin/mount.util-linux --move /etc/udev /dev/.static/dev + elif test -x /bin/busybox + then + busybox mount -n -o move /etc/udev /dev/.static/dev + else + echo "udev requires an identifiable mount command, not started." + umount /etc/udev + umount /dev + exit 1 + fi } # I hate this hack. -- Md -- cgit v1.2.3-54-g00ecf