* scan-device list enhanced
* minor changes in cb-boot services * cbox-manage interrupts without a harddiskmaster
parent
086911e1b8
commit
d88b3c2796
@ -1,26 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# this script looks for the devel-features.sh script
|
||||
# if it exists, it will be executed - this is
|
||||
# ONLY FOR DEVELOPMENT CDs!
|
||||
# for release CDs the file devel-features.sh script should never exist!
|
||||
#
|
||||
|
||||
set -eu
|
||||
|
||||
# parse config file
|
||||
. /etc/cryptobox/cryptobox.conf
|
||||
|
||||
# return, if it does not exist
|
||||
[ ! -e "$DEV_FEATURES_SCRIPT" ] && exit 0
|
||||
|
||||
echo
|
||||
echo "#---------------------------------------------------------------#"
|
||||
echo "| WARNING: developers features are enabled |"
|
||||
echo "| This definitely should NOT happen for production CDs! |"
|
||||
echo "| If you are not a developer, then this CD is DANGEROUS, as it |"
|
||||
echo "| offers no security at all! |"
|
||||
echo "#---------------------------------------------------------------#"
|
||||
echo
|
||||
|
||||
$DEV_FEATURES_SCRIPT "$@"
|
@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
#
|
||||
# we give some hints for users, sitting in front of the cryptobox waiting for a login prompt
|
||||
#
|
||||
|
||||
# parse config file
|
||||
. /etc/cryptobox/cryptobox.conf
|
||||
|
||||
case "$1" in
|
||||
start )
|
||||
# check if we are on a developers CryptoBox
|
||||
# if not give some usage hints
|
||||
# otherwise give a warning and start the devel features
|
||||
if [ ! -e "$DEV_FEATURES_SCRIPT" ]; then
|
||||
echo
|
||||
echo "Hints for usage:"
|
||||
echo " * for some reasons you can not login here :)"
|
||||
echo " * point a webbrowser from another computer to 'http://$(/usr/lib/cryptobox/cb-manage.sh get_current_ip)'"
|
||||
echo " * configure your CryptoBox via a webbrowser"
|
||||
echo
|
||||
else
|
||||
echo
|
||||
echo "#---------------------------------------------------------------#"
|
||||
echo "| WARNING: Some CryptoBox development features are enabled |"
|
||||
echo "| This should definitely NOT happen for a production CD. |"
|
||||
echo "| as it offers no security at all. |"
|
||||
echo "| If you don't plan to refine this CD, don't use it! |"
|
||||
echo "#---------------------------------------------------------------#"
|
||||
echo
|
||||
$DEV_FEATURES_SCRIPT "$@"
|
||||
fi
|
||||
;;
|
||||
stop )
|
||||
;;
|
||||
restart )
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
* )
|
||||
echo "Syntax: $0 { start | stop | restart }"
|
||||
;;
|
||||
esac
|
||||
|
@ -1,26 +0,0 @@
|
||||
#!/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/cb-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
|
||||
|
@ -1 +0,0 @@
|
||||
../init.d/cb-devel-features.sh
|
@ -1 +0,0 @@
|
||||
../init.d/cb-devel-features.sh
|
@ -1 +0,0 @@
|
||||
../init.d/cb-devel-features.sh
|
Loading…
Reference in New Issue