Subversion Repositories livecd

Rev

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

Rev 67 Rev 68
Line 360... Line 360...
360
### Set /etc/motd
360
### Set /etc/motd
361
LiveCD="LiveCD"
361
LiveCD="LiveCD"
362
[ "$ARCH" = "x86_64" ] && LiveCD="LiveCD 64bit"
362
[ "$ARCH" = "x86_64" ] && LiveCD="LiveCD 64bit"
363
echo "Welcome to $LIVECD_OS ${LiveCD}" > /etc/motd
363
echo "Welcome to $LIVECD_OS ${LiveCD}" > /etc/motd
364
[ $PSI ] && echo "Welcome to PSI ${LiveCD} (${CLASS} ${SUBCLASS} SL${RELEASE})" > /etc/motd
364
[ $PSI ] && echo "Welcome to PSI ${LiveCD} (${CLASS} ${SUBCLASS} SL${RELEASE})" > /etc/motd
-
 
365
[ $DVD ]  && sed -i "s|CD|DVD|"    /etc/motd
-
 
366
[ $MINI ] && sed -i "s|CD|MiniCD|" /etc/motd
365
 
367
 
366
### Set hostname to psi or slinux (not really necessary)
368
### Set hostname to psi or slinux (not really necessary)
367
if [ $PSI ]; then
369
if [ $PSI ]; then
368
    HOSTNAME="psi"
370
    HOSTNAME="psi"
369
    sed -i "s/hostname=.*/hostname=${HOSTNAME}.psi.ch/" /etc/ssmtp/ssmtp.conf
371
    sed -i "s/hostname=.*/hostname=${HOSTNAME}.psi.ch/" /etc/ssmtp/ssmtp.conf