8 LIVE_USER_FULLNAME
="Debian Live user"
12 for _PARAMETER
in $
(cat /proc
/cmdline
)
14 case "${_PARAMETER}" in
17 _SCRIPTS
="$(ls /lib/live/config/*)"
21 # Only run requested scripts
22 LIVE_CONFIGS
="${_PARAMETER#live-config=}"
26 # Don't run any script
31 # Don't run requested scripts
32 _SCRIPTS
="$(ls /lib/live/config/*)"
33 LIVE_NOCONFIGS
="${_PARAMETER#live-noconfig=}"
37 live
-config.hostname
=*)
38 LIVE_HOSTNAME
="${_PARAMETER#live-config.hostname=}"
42 live
-config.username
=*)
43 LIVE_USERNAME
="${_PARAMETER#live-config.username=}"
46 live
-config.user
-fullname
=*)
47 LIVE_USER_FULLNAME
="${_PARAMETER#live-config.user-fullname=}"
51 live
-config.locales
=*)
52 LIVE_LOCALES
="${_PARAMETER#live-config.locales=}"
56 live
-config.timezone
=*)
57 LIVE_TIMEZONE
="${_PARAMETER#live-config.timezone=}"
61 LIVE_UTC
="${_PARAMETER#live-config.utc=}"
66 LIVE_HOOK
="${_PARAMETER#live-config.hook=}"
71 # Disable root access, no matter what mechanism
72 _SCRIPTS
="${_SCRIPTS:-$(ls /lib/live/config/*)}"
73 LIVE_NOCONFIGS
="${LIVE_NOCONFIGS},sudo,policykit"
77 # Disables graphical autologin, no matter what
79 _SCRIPTS
="${_SCRIPTS:-$(ls /lib/live/config/*)}"
80 LIVE_NOCONFIGS
="${LIVE_NOCONFIGS},gdm,gdm3,kdm,lxdm,nodm"
85 # Include requested scripts
86 if [ -n
"${LIVE_CONFIGS}" ]
88 for LIVE_CONFIG
in $
(echo ${LIVE_CONFIGS} |
sed -e
's|,| |g')
90 _SCRIPTS
="${_SCRIPTS} $(ls /lib/live/config/???-${LIVE_CONFIG})"
94 # Exclude requested scripts
95 if [ -n
"${LIVE_NOCONFIGS}" ]
97 for LIVE_NOCONFIG
in $
(echo ${LIVE_NOCONFIGS} |
sed -e
's|,| |g')
99 _SCRIPTS
="$(echo ${_SCRIPTS} | sed -e "s|$
(ls /lib
/live
/config
/???
-${LIVE_NOCONFIG})||
")"
123 if ! grep -qs
"boot=live" /proc
/cmdline
128 echo -n
"live-config:"
129 trap 'Trap' EXIT HUP INT QUIT TERM
131 # Reading configuration file from filesystem
132 if [ -e
/etc
/live
/config.conf
]
134 .
/etc
/live
/config.conf
137 if ls /etc
/live
/config.conf.d
/* > /dev
/null
2>&1
139 for _FILE
in /etc
/live
/config.conf.d
/*
145 # Reading configuration file from live-media
146 if [ -e
/live
/image
/live
/config.conf
]
148 .
/live
/image
/live
/config.conf
151 if ls /live
/image
/live
/config.conf.d
/* > /dev
/null
2>&1
153 for FILE
in /live
/image
/live
/config.conf.d
/*
159 # Reading kernel command line
163 for _SCRIPT
in ${_SCRIPTS}