Commit 85c19b14 authored by Claes Sjofors's avatar Claes Sjofors

pwr_stop.sh, bash string functions replaced

parent 5c97736d
...@@ -75,7 +75,9 @@ ...@@ -75,7 +75,9 @@
stored_ifs=$IFS stored_ifs=$IFS
IFS=' ,' IFS=' ,'
while read appid appname appload apprun appfile appprio appdebug apparg; do while read appid appname appload apprun appfile appprio appdebug apparg; do
if [ -n "$appid" ] && [ "${appid:0:1}" != "#" ]; then s1=`eval 'echo $appid' | head -c1`
s8=`eval 'echo $appid' | head -c8`
if [ -n "$appid" ] && [ "$s1" != "#" ]; then
if [ $appid != "pwr_neth" ] && if [ $appid != "pwr_neth" ] &&
[ $appid != "pwr_qmon" ] && [ $appid != "pwr_qmon" ] &&
[ $appid != "pwr_nacp" ] && [ $appid != "pwr_nacp" ] &&
...@@ -100,7 +102,7 @@ ...@@ -100,7 +102,7 @@
[ $appid != "pwr_powerlink" ] && [ $appid != "pwr_powerlink" ] &&
[ $appid != "pwr_sim" ] && [ $appid != "pwr_sim" ] &&
[ $appid != "pwr_plc" ] && [ $appid != "pwr_plc" ] &&
[ ${appid:0:8} != "pwr_plc_" ]; then [ $s8 != "pwr_plc_" ]; then
killall $appname killall $appname
fi fi
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment