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 22... Line 22...
22
LOGIN_DELAY=15
22
LOGIN_DELAY=15
23
 
23
 
24
EOF_livesysconf
24
EOF_livesysconf
25
 
25
 
26
 
26
 
27
cat > . /etc/init.d/livesys.functions << 'EOF_livesysfunctions'
27
cat > /etc/init.d/livesys.functions << 'EOF_livesysfunctions'
28
###--------------------------------------------------------------------
28
###--------------------------------------------------------------------
29
### livesys functions
29
### livesys functions
30
###--------------------------------------------------------------------
30
###--------------------------------------------------------------------
31
 
31
 
32
# egrep_o is a replacement for "egrep -o". It prints only the last matching text
32
# egrep_o is a replacement for "egrep -o". It prints only the last matching text
Line 188... Line 188...
188
 
188
 
189
if [ -n "\\\$configdone" ]; then
189
if [ -n "\\\$configdone" ]; then
190
  exit 0
190
  exit 0
191
fi
191
fi
192
 
192
 
193
 
-
 
194
## fix various bugs and issues
193
## fix various bugs and issues
195
# unmute sound card
194
# unmute sound card
196
exists alsaunmute 0 2> /dev/null
195
exists alsaunmute 0 2> /dev/null
197
 
196
 
-
 
197
# turn off firstboot for livecd boots
-
 
198
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
-
 
199
 
-
 
200
# turn off services, which are not useful on LiveCD, to preserve resources
-
 
201
chkconfig mdmonitor       off 2>/dev/null
-
 
202
chkconfig setroubleshoot  off 2>/dev/null
-
 
203
chkconfig auditd          off 2>/dev/null
-
 
204
chkconfig crond           off 2>/dev/null
-
 
205
chkconfig atd             off 2>/dev/null
-
 
206
chkconfig readahead_early off 2>/dev/null
-
 
207
chkconfig readahead_later off 2>/dev/null
-
 
208
chkconfig kdump           off 2>/dev/null
-
 
209
chkconfig microcode_ctl   off 2>/dev/null
-
 
210
chkconfig openct          off 2>/dev/null
-
 
211
chkconfig pcscd           off 2>/dev/null
-
 
212
chkconfig postfix         off 2>/dev/null
-
 
213
 
-
 
214
# start afs with option -memcache (is this correct?)
-
 
215
[ -e /etc/sysconfig/afs ] && sed -i "s|^OPTIONS=.*|OPTIONS=\"-memcache\"|" /etc/sysconfig/afs
-
 
216
 
198
# Stopgap fix for RH #217966; should be fixed in HAL instead
217
# Stopgap fix for RH #217966; should be fixed in HAL instead
199
touch /media/.hal-mtab
218
touch /media/.hal-mtab
200
 
219
 
201
# set the LiveCD hostname
220
# set the LiveCD hostname
202
[ ! "\\\$hostname" ] && hostname="livecd.localdomain"
221
[ ! "\\\$hostname" ] && hostname="livecd.localdomain"
Line 426... Line 445...
426
 
445
 
427
chmod 755 /etc/rc.d/init.d/livesys-late
446
chmod 755 /etc/rc.d/init.d/livesys-late
428
/sbin/restorecon /etc/rc.d/init.d/livesys-late
447
/sbin/restorecon /etc/rc.d/init.d/livesys-late
429
/sbin/chkconfig --add livesys-late
448
/sbin/chkconfig --add livesys-late
430
 
449
 
431
# turn off firstboot for livecd boots
-
 
432
echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot
-
 
433
 
-
 
434
# turn off services, which are not useful on LiveCD, to preserve resources
-
 
435
chkconfig --level 345 mdmonitor       off 2>/dev/null
-
 
436
chkconfig --level 345 setroubleshoot  off 2>/dev/null
-
 
437
chkconfig --level 345 auditd          off 2>/dev/null
-
 
438
chkconfig --level 345 crond           off 2>/dev/null
-
 
439
chkconfig --level 345 atd             off 2>/dev/null
-
 
440
chkconfig --level 345 readahead_early off 2>/dev/null
-
 
441
chkconfig --level 345 readahead_later off 2>/dev/null
-
 
442
chkconfig --level 345 kdump           off 2>/dev/null
-
 
443
chkconfig --level 345 microcode_ctl   off 2>/dev/null
-
 
444
chkconfig --level 345 openct          off 2>/dev/null
-
 
445
chkconfig --level 345 pcscd           off 2>/dev/null
-
 
446
chkconfig --level 345 postfix         off 2>/dev/null
-
 
447
 
-
 
448
# start afs with option -memcache (is this correct?)
-
 
449
[ -e /etc/sysconfig/afs ] && sed -i "s|^OPTIONS=.*|OPTIONS=\"-memcache\"|" /etc/sysconfig/afs
-
 
450
 
-
 
451
# go ahead and pre-make the man -k cache (#455968)
450
# go ahead and pre-make the man -k cache (#455968)
452
/usr/sbin/makewhatis -w
451
/usr/sbin/makewhatis -w
453
 
452
 
454
# save a little bit of space at least...
453
# save a little bit of space at least...
455
rm -f /var/lib/rpm/__db*
454
rm -f /var/lib/rpm/__db*