Subversion Repositories livecd

Rev

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

Rev 66 Rev 67
Line 375... Line 375...
375
# change hostname
375
# change hostname
376
sed -i "s/HOSTNAME=.*/HOSTNAME=${HOSTNAME}/" /etc/sysconfig/network
376
sed -i "s/HOSTNAME=.*/HOSTNAME=${HOSTNAME}/" /etc/sysconfig/network
377
sed -i "s/DHCP_HOSTNAME=.*/DHCP_HOSTNAME==${HOSTNAME}/" /etc/sysconfig/networking/devices/ifcfg-eth0 2>/dev/null
377
sed -i "s/DHCP_HOSTNAME=.*/DHCP_HOSTNAME==${HOSTNAME}/" /etc/sysconfig/networking/devices/ifcfg-eth0 2>/dev/null
378
 
378
 
379
### Modify /etc/redhat-release
379
### Modify /etc/redhat-release
380
ADD=" - LiveCD"
380
ADD=" - Live"
381
grep -q "$ADD" /etc/redhat-release
381
grep -q "$ADD" /etc/redhat-release
382
if [ "$?" != "0" ]; then
382
if [ "$?" != "0" ]; then
383
    echo "$( cat /etc/redhat-release )${ADD}" > /etc/redhat-release
383
    echo "$( cat /etc/redhat-release )${ADD}CD" > /etc/redhat-release
384
fi
384
fi
385
[ $DVD ] && sed -i "s|CD|DVD|" /etc/redhat-release
385
[ $DVD ]  && sed -i "s|CD|DVD|"    /etc/redhat-release
-
 
386
[ $MINI ] && sed -i "s|CD|MiniCD|" /etc/redhat-release
386
 
387
 
387
### Make scratch
388
### Make scratch
388
if [ $PSI ]; then
389
if [ $PSI ]; then
389
    rm -rf /home/scratch
390
    rm -rf /home/scratch
390
    mkdir -p /home/scratch
391
    mkdir -p /home/scratch