X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=extras%2Fstart_udev;h=bbf32a1bb9befb81940c2481d4f76503e9527737;hb=b9e3301c3b68a1c6464a0bf0ac6e61fc0e4063d1;hp=0212d4f8c13a7f49eabec2c46db1fe162f3a5b2a;hpb=27abdb46ffb0d817888a75adeaf2c0a2e7d2c7a3;p=elogind.git diff --git a/extras/start_udev b/extras/start_udev index 0212d4f8c..bbf32a1bb 100644 --- a/extras/start_udev +++ b/extras/start_udev @@ -1,4 +1,4 @@ -#! /bin/bash +#! /bin/sh # # start_udev # @@ -29,6 +29,9 @@ bin=/sbin/udev udevd=/sbin/udevd run_udev () { + export ACTION=add + export UDEV_NO_SLEEP=1 + # handle block devices and their partitions for i in ${sysfs_dir}/block/*; do # add each drive @@ -85,8 +88,6 @@ echo "mounting... ramfs at $udev_root" mount -n -t ramfs none $udev_root # propogate /udev from /sys -export ACTION=add -export UDEV_NO_SLEEP=1 echo "Creating initial udev device nodes:" # You can use the shell scripts above by calling run_udev or execute udevstart