Use printf instead of echo
parent
c80dcfaa97
commit
7e59879095
|
@ -3,21 +3,21 @@
|
||||||
function start() {
|
function start() {
|
||||||
adb start-server
|
adb start-server
|
||||||
nohup gnirehtet autorun &> /dev/null &
|
nohup gnirehtet autorun &> /dev/null &
|
||||||
echo "Started reverse tethering"
|
printf "Started reverse tethering \n"
|
||||||
}
|
}
|
||||||
|
|
||||||
function stop() {
|
function stop() {
|
||||||
adb kill-server
|
adb kill-server
|
||||||
gnirehtet stop
|
gnirehtet stop
|
||||||
pkill gnirehtet
|
pkill gnirehtet
|
||||||
echo "Stopped reverse tethering"
|
printf "Stopped reverse tethering \n"
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start) start ;;
|
start) start ;;
|
||||||
stop) stop ;;
|
stop) stop ;;
|
||||||
restart) stop; start ;;
|
restart) stop; start ;;
|
||||||
*) echo "start | stop | restart" >&2
|
*) printf "start | stop | restart \n" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue