summaryrefslogtreecommitdiff
path: root/package/base-files/src/etc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-08-11 13:41:45 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-08-11 13:41:45 +0200
commit121e023a1f1649adcee9fa10cc06de04a054eaa3 (patch)
treeb1f1a60cc8cdebeee7a2d03b1732321fac14b537 /package/base-files/src/etc
parentf76e4771d1654bd40196f8a1f5f421d9ea879f1f (diff)
check for file existence
Diffstat (limited to 'package/base-files/src/etc')
-rwxr-xr-xpackage/base-files/src/etc/init.d/rcS4
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