FunKey-OS/FunKey/board/funkey/rootfs-overlay/etc/init.d/S10share

29 lines
389 B
Plaintext
Raw Normal View History

2020-05-09 22:49:37 +01:00
#!/bin/sh
THIS=$(basename $0)
case "$1" in
start)
if share init; then
echo "Starting share: OK"
exit 0
else
echo "Starting share: ERROR"
exit 1
fi
;;
stop)
if share stop >/dev/null 2>&1; then
2020-05-09 22:49:37 +01:00
echo "Stopping share: OK"
exit 0
else
echo "Stopping share: ERROR"
exit 2
fi
;;
*)
echo "Usage: $0 {start|stop}" >&2
exit 3
;;
esac