Skip to content

Commit

Permalink
boot script
Browse files Browse the repository at this point in the history
  • Loading branch information
jr1221 committed Oct 8, 2024
1 parent aae4d8e commit 2178c28
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/sh

start() {
printf "Starting linphone with settings "
linphonecsh init
sleep 1s
linphonecsh generic "autoanswer enable"
linphonecsh generic "firewall none"
}
stop() {
printf "Stopping linphone"
linphonecsh exit
}
restart() {
stop
start
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
restart
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac

exit $?

0 comments on commit 2178c28

Please sign in to comment.