Merge branch 'indev' of github.com:Xelhua/Auto into indev
This commit is contained in:
commit
0330cfeab3
1 file changed
+14
-6
@@ -3,13 +3,18 @@
|
|||||||
|
|
||||||
PID=bin/auto.pid
|
PID=bin/auto.pid
|
||||||
MODS="Mouse Async Class::Unload"
|
MODS="Mouse Async Class::Unload"
|
||||||
|
EMODS="MIME::Base64"
|
||||||
|
|
||||||
if [ "$1" = "start" ] ; then
|
if [ "$1" = "start" ] ; then
|
||||||
echo "Starting Auto. . ."
|
if [ -e $PID ]; then
|
||||||
bin/auto
|
echo "Auto appears to be running already."
|
||||||
sleep 2
|
else
|
||||||
if [ ! -r $PID ]; then
|
echo "Starting Auto. . ."
|
||||||
echo "Possible failed startup... check Auto logs for more information"
|
bin/auto
|
||||||
|
sleep 2
|
||||||
|
if [ ! -r $PID ]; then
|
||||||
|
echo "Possible failed startup... check Auto logs for more information"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif [ "$1" = "stop" ]; then
|
elif [ "$1" = "stop" ]; then
|
||||||
@@ -29,6 +34,9 @@ elif [ "$1" = "status" ]; then
|
|||||||
elif [ "$1" = "getmodules" ]; then
|
elif [ "$1" = "getmodules" ]; then
|
||||||
cpan -i $MODS
|
cpan -i $MODS
|
||||||
|
|
||||||
|
elif [ "$1" = "getextras" ]; then
|
||||||
|
cpan -i $EMODS
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Usage: auto (start|stop|rehash|status|getmodules)"
|
echo "Usage: auto (start|stop|rehash|status|getmodules|getextras)"
|
||||||
fi
|
fi
|
||||||
Reference in new issue
Block a user