From 121e023a1f1649adcee9fa10cc06de04a054eaa3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 11 Aug 2014 13:41:45 +0200 Subject: check for file existence --- package/base-files/Makefile | 2 +- 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 -- cgit v1.2.3