Subversion Repositories livecd

Rev

Rev 349 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 349 Rev 353
Line 599... Line 599...
599
# End of livesys-late script
599
# End of livesys-late script
600
#***********************************************************************
600
#***********************************************************************
601
 
601
 
602
 
602
 
603
#***********************************************************************
603
#***********************************************************************
-
 
604
# Create /sbin/halt.local
-
 
605
#***********************************************************************
-
 
606
 
-
 
607
echo "Creating /sbin/halt.local"
-
 
608
 
-
 
609
cat > /sbin/halt.local << EOF_haltlocal
-
 
610
#!/bin/bash
-
 
611
#
-
 
612
# Ejects LiveCD/DVD, if boot parameter eject is given 
-
 
613
#
-
 
614
 
-
 
615
. /etc/init.d/functions
-
 
616
. /etc/livesys.conf
-
 
617
. /etc/init.d/livesys.functions
-
 
618
 
-
 
619
# exit if not running from LiveCD
-
 
620
if [ ! "\\\$( cmdline_parameter liveimg )" ]; then
-
 
621
    exit 0
-
 
622
fi
-
 
623
if [ "\\\$( cmdline_parameter eject )" ]; then
-
 
624
    echo "Eject CD/DVD ..."
-
 
625
    /usr/sbin/eject -p -m \\\$(readlink -f /dev/live) >/dev/null 2>&1
-
 
626
fi
-
 
627
 
-
 
628
EOF_haltlocal
-
 
629
#***********************************************************************
-
 
630
# End of /sbin/halt.local script
-
 
631
#***********************************************************************
-
 
632
chmod 755 /sbin/halt.local
-
 
633
 
-
 
634
 
-
 
635
#***********************************************************************
604
# Configure the LiveCD
636
# Configure the LiveCD
605
# Everything configured here will survive LiveCD install to harddisk !
637
# Everything configured here will survive LiveCD install to harddisk !
606
#***********************************************************************
638
#***********************************************************************
607
 
639
 
608
echo "Configure the LiveCD"
640
echo "Configure the LiveCD"