diff options
Diffstat (limited to 'openembedded/packages/udev/files/init')
| -rwxr-xr-x | openembedded/packages/udev/files/init | 16 |
1 files changed, 13 insertions, 3 deletions
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() { | |||
| 52 | 52 | ||
| 53 | mkdir -p /dev/.static/dev | 53 | mkdir -p /dev/.static/dev |
| 54 | chmod 700 /dev/.static/ | 54 | chmod 700 /dev/.static/ |
| 55 | # Make sure it's busybox mount we're using. util-linux mount doesn't handle | 55 | # The mount options in busybox are non-standard... |
| 56 | # -o move. | 56 | if test -x /bin/mount.util-linux |
| 57 | busybox mount -n -o move /etc/udev /dev/.static/dev | 57 | then |
| 58 | /bin/mount.util-linux --move /etc/udev /dev/.static/dev | ||
| 59 | elif test -x /bin/busybox | ||
| 60 | then | ||
| 61 | busybox mount -n -o move /etc/udev /dev/.static/dev | ||
| 62 | else | ||
| 63 | echo "udev requires an identifiable mount command, not started." | ||
| 64 | umount /etc/udev | ||
| 65 | umount /dev | ||
| 66 | exit 1 | ||
| 67 | fi | ||
| 58 | } | 68 | } |
| 59 | 69 | ||
| 60 | # I hate this hack. -- Md | 70 | # I hate this hack. -- Md |
