Subversion Repositories livecd

Rev

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

Rev 269 Rev 270
Line 139... Line 139...
139
LOGIN_DELAY=15
139
LOGIN_DELAY=15
140
 
140
 
141
EOF_livesysconf
141
EOF_livesysconf
142
 
142
 
143
 
143
 
144
cat > . /etc/init.d/livesys.functions << 'EOF_livesysfunctions'
144
cat > /etc/init.d/livesys.functions << 'EOF_livesysfunctions'
145
###--------------------------------------------------------------------
145
###--------------------------------------------------------------------
146
### livesys functions
146
### livesys functions
147
###--------------------------------------------------------------------
147
###--------------------------------------------------------------------
148
 
148
 
149
# egrep_o is a replacement for "egrep -o". It prints only the last matching text
149
# egrep_o is a replacement for "egrep -o". It prints only the last matching text
Line 305... Line 305...
305
 
305
 
306
if [ -n "\\\$configdone" ]; then
306
if [ -n "\\\$configdone" ]; then
307
  exit 0
307
  exit 0
308
fi
308
fi
309
 
309
 
310
 
-
 
311
## fix various bugs and issues
310
## fix various bugs and issues
312
# unmute sound card
311
# unmute sound card
313
exists alsaunmute 0 2> /dev/null
312
exists alsaunmute 0 2> /dev/null
314
 
313
 
-
 
314
# turn off firstboot for livecd boots
-
 
315
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
-
 
316
 
-
 
317
# turn off services, which are not useful on LiveCD, to preserve resources
-
 
318
chkconfig mdmonitor       off 2>/dev/null
-
 
319
chkconfig setroubleshoot  off 2>/dev/null
-
 
320
chkconfig auditd          off 2>/dev/null
-
 
321
chkconfig crond           off 2>/dev/null
-
 
322
chkconfig atd             off 2>/dev/null
-
 
323
chkconfig readahead_early off 2>/dev/null
-
 
324
chkconfig readahead_later off 2>/dev/null
-
 
325
chkconfig kdump           off 2>/dev/null
-
 
326
chkconfig microcode_ctl   off 2>/dev/null
-
 
327
chkconfig openct          off 2>/dev/null
-
 
328
chkconfig pcscd           off 2>/dev/null
-
 
329
chkconfig postfix         off 2>/dev/null
-
 
330
 
-
 
331
# start afs with option -memcache (is this correct?)
-
 
332
[ -e /etc/sysconfig/afs ] && sed -i "s|^OPTIONS=.*|OPTIONS=\"-memcache\"|" /etc/sysconfig/afs
-
 
333
 
315
# Stopgap fix for RH #217966; should be fixed in HAL instead
334
# Stopgap fix for RH #217966; should be fixed in HAL instead
316
touch /media/.hal-mtab
335
touch /media/.hal-mtab
317
 
336
 
318
# set the LiveCD hostname
337
# set the LiveCD hostname
319
[ ! "\\\$hostname" ] && hostname="livecd.localdomain"
338
[ ! "\\\$hostname" ] && hostname="livecd.localdomain"
Line 543... Line 562...
543
 
562
 
544
chmod 755 /etc/rc.d/init.d/livesys-late
563
chmod 755 /etc/rc.d/init.d/livesys-late
545
/sbin/restorecon /etc/rc.d/init.d/livesys-late
564
/sbin/restorecon /etc/rc.d/init.d/livesys-late
546
/sbin/chkconfig --add livesys-late
565
/sbin/chkconfig --add livesys-late
547
 
566
 
548
# turn off firstboot for livecd boots
-
 
549
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
-
 
550
 
-
 
551
# turn off services, which are not useful on LiveCD, to preserve resources
-
 
552
chkconfig --level 345 mdmonitor       off 2>/dev/null
-
 
553
chkconfig --level 345 setroubleshoot  off 2>/dev/null
-
 
554
chkconfig --level 345 auditd          off 2>/dev/null
-
 
555
chkconfig --level 345 crond           off 2>/dev/null
-
 
556
chkconfig --level 345 atd             off 2>/dev/null
-
 
557
chkconfig --level 345 readahead_early off 2>/dev/null
-
 
558
chkconfig --level 345 readahead_later off 2>/dev/null
-
 
559
chkconfig --level 345 kdump           off 2>/dev/null
-
 
560
chkconfig --level 345 microcode_ctl   off 2>/dev/null
-
 
561
chkconfig --level 345 openct          off 2>/dev/null
-
 
562
chkconfig --level 345 pcscd           off 2>/dev/null
-
 
563
chkconfig --level 345 postfix         off 2>/dev/null
-
 
564
 
-
 
565
# start afs with option -memcache (is this correct?)
-
 
566
[ -e /etc/sysconfig/afs ] && sed -i "s|^OPTIONS=.*|OPTIONS=\"-memcache\"|" /etc/sysconfig/afs
-
 
567
 
-
 
568
# go ahead and pre-make the man -k cache (#455968)
567
# go ahead and pre-make the man -k cache (#455968)
569
/usr/sbin/makewhatis -w
568
/usr/sbin/makewhatis -w
570
 
569
 
571
# save a little bit of space at least...
570
# save a little bit of space at least...
572
rm -f /var/lib/rpm/__db*
571
rm -f /var/lib/rpm/__db*