Subversion Repositories livecd

Rev

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

Rev 110 Rev 112
Line 96... Line 96...
96
# Configure system
96
# Configure system
97
###############################################################
97
###############################################################
98
 
98
 
99
echo "Configure system ..."
99
echo "Configure system ..."
100
 
100
 
101
# build nvidia kernel modules
101
# build nvidia kernel modules 
102
[ -x /usr/sbin/mknvidia ] && mknvidia
102
[ -x /usr/sbin/mknvidia ] && mknvidia
103
 
103
 
104
# build vpnclient kernel module
104
# build vpnclient kernel module
105
[ -x /usr/sbin/mkvpnclient ] && mkvpnclient
105
[ -x /usr/sbin/mkvpnclient ] && mkvpnclient
106
 
106
 
Line 224... Line 224...
224
 
224
 
225
### remove /.autofsck
225
### remove /.autofsck
226
rm -f /.autofsck
226
rm -f /.autofsck
227
 
227
 
228
### disable cfagent
228
### disable cfagent
229
rm -f /etc/cron.d/cfengine
229
[ $PSI ] && rm -f /etc/cron.d/cfengine
230
 
230
 
231
### disable check_update in rc.local.psi
231
### disable check_update in rc.local.psi
232
[ $PSI ] && sed -i "s|/etc/init.d/check_update|# /etc/init.d/check_update|" /etc/rc.d/rc.local.psi
232
[ $PSI ] && sed -i "s|/etc/init.d/check_update|# /etc/init.d/check_update|" /etc/rc.d/rc.local.psi
233
 
233
 
234
### create in /boot link to LiveCD kernel(s)
234
### create in /boot link to LiveCD kernel(s)
Line 308... Line 308...
308
    java_src=$( rpm -ql j2sdk 2>/dev/null | grep src.zip )
308
    java_src=$( rpm -ql j2sdk 2>/dev/null | grep src.zip )
309
    [ -e "$java_src" ] && mv -v "$java_src" /mini/
309
    [ -e "$java_src" ] && mv -v "$java_src" /mini/
310
    
310
    
311
fi
311
fi
312
 
312
 
313
### remove /etc/rc.d/init.d/login (should only be on Mini LiveCD)
-
 
314
##  this will be obsolete soon.
-
 
315
rm -f /etc/rc.d/init.d/login
-
 
316
 
-
 
317
 
-
 
318
echo "done."
313
echo "done."
319
echo "--------------------------------------------"
314
echo "--------------------------------------------"
320
 
315
 
321
 
316
 
322
 
317
 
Line 400... Line 395...
400
[ $MINI ] && ADD=" - LiveMiniCD"
395
[ $MINI ] && ADD=" - LiveMiniCD"
401
if [ -e /etc/redhat-release.ori ]; then
396
if [ -e /etc/redhat-release.ori ]; then
402
    echo "$( cat /etc/redhat-release.ori )${ADD}" > /etc/redhat-release
397
    echo "$( cat /etc/redhat-release.ori )${ADD}" > /etc/redhat-release
403
fi
398
fi
404
 
399
 
405
### Make scratch
-
 
406
if [ $PSI ]; then
-
 
407
    rm -rf /home/scratch
-
 
408
    mkdir -p /home/scratch
-
 
409
    chmod 1777 /home/scratch
-
 
410
    rm -rf /scratch
-
 
411
    ln -s /home/scratch /scratch
-
 
412
else
-
 
413
    rm -rf /home/scratch
-
 
414
    rm -rf /scratch
-
 
415
    mkdir -p /scratch
-
 
416
    chmod 1777 /scratch
-
 
417
fi
-
 
418
 
-
 
419
### set default runlevel to $RUNLEVEL
400
### set default runlevel to $RUNLEVEL
420
if [ $RUNLEVEL ]; then
401
if [ $RUNLEVEL ]; then
421
    sed -i "s/id:.:initdefault:/id:$RUNLEVEL:initdefault:/" /etc/inittab
402
    sed -i "s/id:.:initdefault:/id:$RUNLEVEL:initdefault:/" /etc/inittab
422
fi
403
fi
423
 
404