Subversion Repositories livecd

Rev

Rev 282 | Rev 285 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 282 Rev 283
Line 171... Line 171...
171
SERVICEOFF=\\\$( cmdline_value serviceoff )
171
SERVICEOFF=\\\$( cmdline_value serviceoff )
172
 
172
 
173
# cups server
173
# cups server
174
CUPS=\\\$( cmdline_value cups )
174
CUPS=\\\$( cmdline_value cups )
175
 
175
 
-
 
176
# password
-
 
177
PW=\\\$( cmdline_value pw )
-
 
178
[ ! \\\$PW ] && PW=$( cmdline_value passwd )
-
 
179
 
176
# set livecd user
180
# set livecd user
177
LIVECD_USER=\\\$( cmdline_value user )
181
LIVECD_USER=\\\$( cmdline_value user )
178
[ ! "\\\$LIVECD_USER" ] && LIVECD_USER=\\\$LIVECD_DEF_USER
182
[ ! "\\\$LIVECD_USER" ] && LIVECD_USER=\\\$LIVECD_DEF_USER
179
 
183
 
180
# mount live image
184
# mount live image
Line 336... Line 340...
336
/usr/sbin/useradd -c "LiveCD default user" \\\$LIVECD_USER
340
/usr/sbin/useradd -c "LiveCD default user" \\\$LIVECD_USER
337
/usr/bin/passwd -d \\\$LIVECD_USER > /dev/null
341
/usr/bin/passwd -d \\\$LIVECD_USER > /dev/null
338
# give default user sudo privileges
342
# give default user sudo privileges
339
# echo "\\\$LIVECD_USER     ALL=(ALL)     NOPASSWD: ALL" >> /etc/sudoers
343
# echo "\\\$LIVECD_USER     ALL=(ALL)     NOPASSWD: ALL" >> /etc/sudoers
340
 
344
 
-
 
345
## set password
-
 
346
if [ "\\\$PW" ]; then
-
 
347
    echo \\\$PW | passwd --stdin root >/dev/null
-
 
348
    echo \\\$PW | passwd --stdin \\\$LIVECD_USER >/dev/null
-
 
349
fi
-
 
350
 
341
## configure default user's desktop
351
## configure default user's desktop
342
# set up timed auto-login at 10 seconds
352
# set up timed auto-login at 10 seconds
343
cat >> /etc/gdm/custom.conf << FOE
353
cat >> /etc/gdm/custom.conf << FOE
344
[daemon]
354
[daemon]
345
TimedLoginEnable=true
355
TimedLoginEnable=true