diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-08-11 13:41:45 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-08-11 13:41:45 +0200 |
commit | 121e023a1f1649adcee9fa10cc06de04a054eaa3 (patch) | |
tree | b1f1a60cc8cdebeee7a2d03b1732321fac14b537 /package/base-files/src/etc | |
parent | f76e4771d1654bd40196f8a1f5f421d9ea879f1f (diff) |
check for file existence
Diffstat (limited to 'package/base-files/src/etc')
-rwxr-xr-x | package/base-files/src/etc/init.d/rcS | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/base-files/src/etc/init.d/rcS b/package/base-files/src/etc/init.d/rcS index d2270318c..3e65d0967 100755 --- a/package/base-files/src/etc/init.d/rcS +++ b/package/base-files/src/etc/init.d/rcS @@ -15,7 +15,9 @@ mount -o remount,nosuid,size=128k,mode=0755 -t tmpfs mdev /dev # start mdev dynamic device node management echo >/dev/mdev.seq -echo "/sbin/mdev" >/proc/sys/kernel/hotplug +if [ -f /proc/sys/kernel/hotplug ];then + echo "/sbin/mdev" >/proc/sys/kernel/hotplug +fi # creates f.e. /dev/root mdev -s |