Skip to contentSkip to conversation

svn commit: trunk/buildroot/target/device/Atmel/atstk1002/target_skeleton/etc/init.d

Buildroot ulf at uclibc.org 1 participant 1 message Sep 20, 2007

lore
Share & tools
lore
#0 lore raw

Author: ulf
Date: 2007-09-20 09:46:31 -0700 (Thu, 20 Sep 2007) New Revision: 19913

Log:
Check if STK1002 init scripts are executable before running

Modified:
trunk/buildroot/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/rcS

Changeset:
Modified: trunk/buildroot/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/rcS
===================================================================

buildroot/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/rcS +3 -1
@@ -1,7 +1,9 @@
 #!/bin/sh
 
 for s in /etc/init.d/S*; do
-	$s start
+	if [ -x $s ]; then
+		$s start
+	fi
 done
 
 echo