From 94cff5a2658f30ac09f1450ff005d69a4032777d Mon Sep 17 00:00:00 2001 From: Ulf Samuelsson Date: Thu, 20 Sep 2007 16:46:31 +0000 Subject: [PATCH] Check if STK1002 init scripts are executable before running --- target/device/Atmel/atstk1002/target_skeleton/etc/init.d/rcS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/rcS b/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/rcS index 0d574e67b0..a8ea85cdc8 100755 --- a/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/rcS +++ b/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/rcS @@ -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