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 119... Line 119...
119
LOGIN_DELAY=15
119
LOGIN_DELAY=15
120
 
120
 
121
EOF_livesysconf
121
EOF_livesysconf
122
 
122
 
123
 
123
 
124
cat > . /etc/init.d/livesys.functions << 'EOF_livesysfunctions'
124
cat > /etc/init.d/livesys.functions << 'EOF_livesysfunctions'
125
###--------------------------------------------------------------------
125
###--------------------------------------------------------------------
126
### livesys functions
126
### livesys functions
127
###--------------------------------------------------------------------
127
###--------------------------------------------------------------------
128
 
128
 
129
# egrep_o is a replacement for "egrep -o". It prints only the last matching text
129
# egrep_o is a replacement for "egrep -o". It prints only the last matching text
Line 285... Line 285...
285
 
285
 
286
if [ -n "\\\$configdone" ]; then
286
if [ -n "\\\$configdone" ]; then
287
  exit 0
287
  exit 0
288
fi
288
fi
289
 
289
 
290
 
-
 
291
## fix various bugs and issues
290
## fix various bugs and issues
292
# unmute sound card
291
# unmute sound card
293
exists alsaunmute 0 2> /dev/null
292
exists alsaunmute 0 2> /dev/null
294
 
293
 
-
 
294
# turn off firstboot for livecd boots
-
 
295
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
-
 
296
 
-
 
297
# turn off services, which are not useful on LiveCD, to preserve resources
-
 
298
chkconfig mdmonitor       off 2>/dev/null
-
 
299
chkconfig setroubleshoot  off 2>/dev/null
-
 
300
chkconfig auditd          off 2>/dev/null
-
 
301
chkconfig crond           off 2>/dev/null
-
 
302
chkconfig atd             off 2>/dev/null
-
 
303
chkconfig readahead_early off 2>/dev/null
-
 
304
chkconfig readahead_later off 2>/dev/null
-
 
305
chkconfig kdump           off 2>/dev/null
-
 
306
chkconfig microcode_ctl   off 2>/dev/null
-
 
307
chkconfig openct          off 2>/dev/null
-
 
308
chkconfig pcscd           off 2>/dev/null
-
 
309
chkconfig postfix         off 2>/dev/null
-
 
310
 
-
 
311
# start afs with option -memcache (is this correct?)
-
 
312
[ -e /etc/sysconfig/afs ] && sed -i "s|^OPTIONS=.*|OPTIONS=\"-memcache\"|" /etc/sysconfig/afs
-
 
313
 
295
# Stopgap fix for RH #217966; should be fixed in HAL instead
314
# Stopgap fix for RH #217966; should be fixed in HAL instead
296
touch /media/.hal-mtab
315
touch /media/.hal-mtab
297
 
316
 
298
# set the LiveCD hostname
317
# set the LiveCD hostname
299
[ ! "\\\$hostname" ] && hostname="livecd.localdomain"
318
[ ! "\\\$hostname" ] && hostname="livecd.localdomain"
Line 523... Line 542...
523
 
542
 
524
chmod 755 /etc/rc.d/init.d/livesys-late
543
chmod 755 /etc/rc.d/init.d/livesys-late
525
/sbin/restorecon /etc/rc.d/init.d/livesys-late
544
/sbin/restorecon /etc/rc.d/init.d/livesys-late
526
/sbin/chkconfig --add livesys-late
545
/sbin/chkconfig --add livesys-late
527
 
546
 
528
# turn off firstboot for livecd boots
-
 
529
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
-
 
530
 
-
 
531
# turn off services, which are not useful on LiveCD, to preserve resources
-
 
532
chkconfig --level 345 mdmonitor       off 2>/dev/null
-
 
533
chkconfig --level 345 setroubleshoot  off 2>/dev/null
-
 
534
chkconfig --level 345 auditd          off 2>/dev/null
-
 
535
chkconfig --level 345 crond           off 2>/dev/null
-
 
536
chkconfig --level 345 atd             off 2>/dev/null
-
 
537
chkconfig --level 345 readahead_early off 2>/dev/null
-
 
538
chkconfig --level 345 readahead_later off 2>/dev/null
-
 
539
chkconfig --level 345 kdump           off 2>/dev/null
-
 
540
chkconfig --level 345 microcode_ctl   off 2>/dev/null
-
 
541
chkconfig --level 345 openct          off 2>/dev/null
-
 
542
chkconfig --level 345 pcscd           off 2>/dev/null
-
 
543
chkconfig --level 345 postfix         off 2>/dev/null
-
 
544
 
-
 
545
# start afs with option -memcache (is this correct?)
-
 
546
[ -e /etc/sysconfig/afs ] && sed -i "s|^OPTIONS=.*|OPTIONS=\"-memcache\"|" /etc/sysconfig/afs
-
 
547
 
-
 
548
# go ahead and pre-make the man -k cache (#455968)
547
# go ahead and pre-make the man -k cache (#455968)
549
/usr/sbin/makewhatis -w
548
/usr/sbin/makewhatis -w
550
 
549
 
551
# save a little bit of space at least...
550
# save a little bit of space at least...
552
rm -f /var/lib/rpm/__db*
551
rm -f /var/lib/rpm/__db*