cryptonas-archive/v0.2.1/cbox-tree.d/etc/init.d/cb-hints.sh

27 lines
522 B
Bash
Raw Normal View History

2005-10-24 12:19:17 +02:00
#!/bin/sh
#
# give some hints for users, who are sitting in front of the cryptobox and are mistakenly
# waiting for a login prompt
#
case "$1" in
start )
echo
echo "Hints for usage: "
echo " * you can not login here :)"
echo " * point a webbrowser on another computer to 'http://$(/usr/lib/cryptobox/cbox-manage.sh get_current_ip)'"
echo " * configure your box via your webbrowser"
echo
;;
stop )
;;
restart )
$0 stop
$0 start
;;
* )
echo "Syntax: $0 { start | stop | restart }"
;;
esac