3 # Redirect stdout to stderr
8 echo "live-system - determine if running system is a live system"
10 echo "Usage: ${0} [-v|--verbose]"
20 [ "${_VERBOSE}" ] && echo -n "Checking for live-system... "
22 if [ ! -e /proc/cmdline ]
24 echo "E: /proc/cmdline - No such file."
28 if grep -qs boot=live /proc/cmdline
30 [ "${_VERBOSE}" ] && echo -n " yes, this is a live system"
32 if [ -d /live/image/install ]
34 if ls /live/image/install/pool/main/l/live-installer/live-installer_*.udeb > /dev/null 2>&1
36 [ "${_VERBOSE}" ] && echo " with live-installer support."
38 [ "${_VERBOSE}" ] && echo " without live-installer support."
41 [ "${_VERBOSE}" ] && echo "without installer support."
46 [ "${_VERBOSE}" ] && echo " no, this is not a live system."