Execute script only Grml as safety check.

From: Michael Prokop <mprokop@sipwise.com>
ksolomko/vlan
Michael Prokop 14 years ago
parent 49b30de771
commit a193eec5fa

@ -5,8 +5,17 @@
# * rename kantan host into spce (bootoption in ISO)
# * support configuration via wget-able config file
# Never ever execute the script outside of a
# running Grml live system because partitioning
# disks might destroy data. Seriously.
if ! [ -r /etc/grml_cd ] ; then
echo "Not running inside Grml, better safe than sorry. Sorry." >&2
exit 1
fi
# Exit on any error. Horrible for programming,
# but be as defense as possible. Murhpy, you know.
set -e
# set -x
# better safe than sorry
export LC_ALL=C

Loading…
Cancel
Save