Subversion Repositories livecd

Rev

Rev 7 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7 Rev 9
Line 64... Line 64...
64
chkconfig sshd on 2>/dev/null
64
chkconfig sshd on 2>/dev/null
65
 
65
 
66
### create link to liblinuxlive
66
### create link to liblinuxlive
67
mkdir -p /livecd/live
67
mkdir -p /livecd/live
68
rm -f /livecd/live/liblinuxlive
68
rm -f /livecd/live/liblinuxlive
69
ln -s $LIVECD_DIR/linux-live.sl/initrd/liblinuxlive /livecd/live/liblinuxlive
69
ln -s $LIVECD_DIR/linux-live.sl4/initrd/liblinuxlive /livecd/live/liblinuxlive
70
 
70
 
71
### restore /etc/resolv.conf
71
### restore /etc/resolv.conf
72
mv -f /etc/resolv.conf.ori /etc/resolv.conf
72
mv -f /etc/resolv.conf.ori /etc/resolv.conf
73
 
73
 
74
### move /etc/yum.repos.d, it will interfere with our yum.conf.psi
74
### move /etc/yum.repos.d, it will interfere with our yum.conf.psi
Line 91... Line 91...
91
if [ $PSI ]; then
91
if [ $PSI ]; then
92
    echo "root" > /etc/security/users
92
    echo "root" > /etc/security/users
93
fi
93
fi
94
 
94
 
95
### set root password again
95
### set root password again
96
[ $SET_ROOTPWD ] && passwd
96
passwd
97
[ ! $SET_ROOTPWD ] && echo "Please note: root password is unset, run passwd to set it again."
-