test -x $tripe -a -x $tripectl || exit 0
-case `$tripe --tunnel` in
+case ${tunnel-`$tripe --tunnels | head -1`} in
linux)
case `uname -s` in
Linux)
;;
esac
;;
+ slip)
+ if test "$TRIPE_SLIPIF" = ""; then
+ echo >&2 "$tripe needs SLIP interfaces set up!"
+ exit 1
+ fi
+ ;;
esac
# --- Do what was wanted ---
${user+-S-u}${user} \
${group+-S-g}${group} \
${trace+-S-T}${trace} \
+ ${tunnel+-S-n}${tunnel} \
${miscopts}
for i in 1 2 3 4 give-up; do
$tripectl help >/dev/null 2>/dev/null && break
$tripectl stats $i | sed 's/^/ /'
done
;;
+ reload)
+ $tripectl reload
+ echo "Keyrings reloaded OK."
+ ;;
restart | force-reload)
sh $0 stop
sh $0 start
;;
*)
- echo >&2 "usage: $0 start|stop|restart|status|force-reload"
+ echo >&2 "usage: $0 start|stop|restart|status|reload|force-reload"
exit 1
;;
esac