43 lines
648 B
Plaintext
43 lines
648 B
Plaintext
|
|
case "$1" in
|
|
start)
|
|
echo -n $"Starting QoS: "
|
|
start
|
|
RETVAL=$?
|
|
;;
|
|
stop)
|
|
echo -n $"Stoping QoS: "
|
|
stop
|
|
RETVAL=$?
|
|
;;
|
|
restart)
|
|
echo -n $"Restarting QoS: "
|
|
stop && start
|
|
RETVAL=$?
|
|
;;
|
|
adjust)
|
|
echo -n $"Adjusting QoS: "
|
|
stop
|
|
if [ $(/sbin/e-smith/db configuration getprop qos status) == 'enabled' ]; then
|
|
start
|
|
fi
|
|
RETVAL=$?
|
|
;;
|
|
status)
|
|
status
|
|
;;
|
|
*)
|
|
echo "Usage: $0 start|stop|restart|status"
|
|
;;
|
|
esac
|
|
|
|
if [ $RETVAL -eq 0 ]; then
|
|
echo_success
|
|
else
|
|
echo_failure
|
|
fi
|
|
echo
|
|
|
|
exit $RETVAL
|
|
|