mirror of https://github.com/OpenIPC/composer.git
Sync of last baresip work
parent
e504c970f8
commit
6a6b6746b2
packages/baresip-openipc/files
projects
gk7205v200_lite_baresip
br-ext-chip-goke/configs
general/overlay/etc
msc313e_lite_baresip
br-ext-chip-sigmastar/configs
general/overlay/etc
t31_lite_baresip
br-ext-chip-ingenic/configs
general/overlay/etc
workplace/scripts
|
@ -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
|
|
@ -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}
|
||||||
|
|
|
@ -13,5 +13,3 @@ rm -rf \
|
||||||
|
|
||||||
BOARD=t31_baresip make br-baresip-openipc-{dirclean,rebuild}
|
BOARD=t31_baresip make br-baresip-openipc-{dirclean,rebuild}
|
||||||
|
|
||||||
BOARD=t31_baresip make br-baresip-openipc-{dirclean,rebuild}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue