Sync of last baresip work

pull/2/head
Igor Zalatov (from Citadel PC) 2023-05-16 22:37:19 +03:00
parent e504c970f8
commit 6a6b6746b2
9 changed files with 62 additions and 2 deletions

View File

@ -0,0 +1,47 @@
#!/bin/sh
DAEMON="baresip"
PIDFILE="/var/run/$DAEMON.pid"
DAEMON_ARGS="-f /etc/baresip"
start() {
printf 'Starting %s: ' "$DAEMON"
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "$DAEMON" -- $DAEMON_ARGS
status=$?
if [ "$status" -eq 0 ]; then
echo "OK"
else
echo "FAIL"
fi
return "$status"
}
stop() {
printf 'Stopping %s: ' "$DAEMON"
start-stop-daemon -K -q -p "$PIDFILE"
status=$?
if [ "$status" -eq 0 ]; then
rm -f "$PIDFILE"
echo "OK"
else
echo "FAIL"
fi
return "$status"
}
restart() {
stop
sleep 1
start
}
case "$1" in
start|stop|restart)
"$1";;
reload)
restart;;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
esac

View File

@ -0,0 +1,15 @@
#!/bin/bash
cd ../../openipc
pwd
rm -rf \
output/per-package/libre-openipc \
output/per-package/librem-openipc \
output/per-package/baresip-openipc \
output/build/libre-openipc-* \
output/build/librem-openipc-* \
output/build/baresip-openipc-*
BOARD=msc313e_baresip make br-baresip-openipc-{dirclean,rebuild}

View File

@ -13,5 +13,3 @@ rm -rf \
BOARD=t31_baresip make br-baresip-openipc-{dirclean,rebuild}
BOARD=t31_baresip make br-baresip-openipc-{dirclean,rebuild}