Commit 6e5fdfc1 authored by claes's avatar claes

Minor chnage

parent 08bc968c
...@@ -199,13 +199,24 @@ EOF ...@@ -199,13 +199,24 @@ EOF
fi fi
# Create startup link # Create startup link
set +e
checklink=`eval ls /etc/init.d/rc2.d/S90pwr 2>/dev/null` if [ -e /etc/init.d/rc2.d ]; then
set -e set +e
if [ "$checklink" != "" ]; then checklink=`eval ls /etc/init.d/rc2.d/S90pwr 2>/dev/null`
rm /etc/init.d/rc2.d/S90pwr set -e
if [ "$checklink" != "" ]; then
rm /etc/init.d/rc2.d/S90pwr
fi
ln -s /etc/init.d/pwr /etc/init.d/rc2.d/S90pwr
elif [ -e /etc/rc2.d ]; then
set +e
checklink=`eval ls /etc/rc2.d/S90pwr 2>/dev/null`
set -e
if [ "$checklink" != "" ]; then
rm /etc/rc2.d/S90pwr
fi
ln -s /etc/init.d/pwr /etc/rc2.d/S90pwr
fi fi
ln -s /etc/init.d/pwr /etc/init.d/rc2.d/S90pwr
# Create project # Create project
new_project=0 new_project=0
...@@ -418,9 +429,17 @@ if [ "$remove_all" = "y" ]; then ...@@ -418,9 +429,17 @@ if [ "$remove_all" = "y" ]; then
fi fi
# Remove startup # Remove startup
checklink=`eval ls /etc/init.d/rc2.d/S90pwr 2>/dev/null`
if [ "$checklink" != "" ]; then if [ -e /etc/init.d/rc2.d ]; then
rm /etc/init.d/rc2.d/S90pwr checklink=`eval ls /etc/init.d/rc2.d/S90pwr 2>/dev/null`
if [ "$checklink" != "" ]; then
rm /etc/init.d/rc2.d/S90pwr
fi
elif [ -e /etc/rc2.d ]; then
checklink=`eval ls /etc/rc2.d/S90pwr 2>/dev/null`
if [ "$checklink" != "" ]; then
rm /etc/rc2.d/S90pwr
fi
fi fi
# Remove jar-files on web directory # Remove jar-files on web directory
......
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