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 | |
parent | f76e4771d1654bd40196f8a1f5f421d9ea879f1f (diff) |
check for file existence
-rw-r--r-- | package/base-files/Makefile | 2 | ||||
-rwxr-xr-x | package/base-files/src/etc/init.d/rcS | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 277b3f59d..5ce14b176 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -6,7 +6,7 @@ include $(ADK_TOPDIR)/mk/rootfs.mk PKG_NAME:= base-files PKG_VERSION:= 1.1 -PKG_RELEASE:= 4 +PKG_RELEASE:= 5 PKG_SECTION:= base/apps PKG_DESCR:= basic files and scripts 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 |