Subversion Repositories livecd

Rev

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

Rev 81 Rev 93
Line 397... Line 397...
397
# change hostname
397
# change hostname
398
sed -i "s/HOSTNAME=.*/HOSTNAME=${HOSTNAME}/" /etc/sysconfig/network
398
sed -i "s/HOSTNAME=.*/HOSTNAME=${HOSTNAME}/" /etc/sysconfig/network
399
sed -i "s/DHCP_HOSTNAME=.*/DHCP_HOSTNAME==${HOSTNAME}/" /etc/sysconfig/networking/devices/ifcfg-eth0 2>/dev/null
399
sed -i "s/DHCP_HOSTNAME=.*/DHCP_HOSTNAME==${HOSTNAME}/" /etc/sysconfig/networking/devices/ifcfg-eth0 2>/dev/null
400
 
400
 
401
### Modify /etc/redhat-release
401
### Modify /etc/redhat-release
402
ADD=" - Live"
402
ADD=" - LiveCD"
-
 
403
[ $DVD ]  && ADD=" - LiveDVD"
403
grep -q "$ADD" /etc/redhat-release
404
[ $MINI ] && ADD=" - LiveMiniCD"
404
if [ "$?" != "0" ]; then
405
if [ -e /etc/redhat-release.ori ]; then
405
    echo "$( cat /etc/redhat-release )${ADD}CD" > /etc/redhat-release
406
    echo "$( cat /etc/redhat-release.ori )${ADD}" > /etc/redhat-release
406
fi
407
fi
407
[ $DVD ]  && sed -i "s|CD|DVD|"    /etc/redhat-release
-
 
408
[ $MINI ] && sed -i "s|CD|MiniCD|" /etc/redhat-release
-
 
409
 
408
 
410
### Make scratch
409
### Make scratch
411
if [ $PSI ]; then
410
if [ $PSI ]; then
412
    rm -rf /home/scratch
411
    rm -rf /home/scratch
413
    mkdir -p /home/scratch
412
    mkdir -p /home/scratch