Subversion Repositories livecd

Rev

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

Rev 167 Rev 169
Line 1... Line 1...
1
#!/bin/ash
1
#!/bin/ash
2
#
2
#
3
# Functions library :: for Linux Live scripts 5.x.y
3
# Functions library :: for Linux Live scripts 5.x.y
4
# Author: Tomas M. <http://www.linux-live.org>
4
# Author: Tomas M. <http://www.linux-live.org>
5
#
5
#
6
# modified by Urs Beyerle, PSI
6
# modified by Urs Beyerle
7
# - to allow LiveCD mounted over nfs
7
# - to allow LiveCD mounted over nfs
8
# - add scsi_mod, sd_mod for usb-storage module
8
# - add scsi_mod, sd_mod for usb-storage module
9
# - only with boot option "automount", all devices in fstab are rw automounted
9
# - only with boot option "automount", all devices in fstab are rw automounted
10
# - remove detect of CD and Floppy (done by fstab-sync)
10
# - remove detect of CD and Floppy (done by fstab-sync)
11
# - add sr_mod (USB CDROM support)
11
# - add sr_mod (USB CDROM support)
Line 497... Line 497...
497
# ===========================================================
497
# ===========================================================
498
# functions used for LiveCD on NFS 
498
# functions used for LiveCD on NFS 
499
# ===========================================================
499
# ===========================================================
500
 
500
 
501
# load network modules, if NFSROOT is set
501
# load network modules, if NFSROOT is set
502
# Urs Beyerle, PSI
502
# Urs Beyerle
503
#
503
#
504
 
504
 
505
# network devices found ?
505
# network devices found ?
506
#
506
#
507
found_nic()
507
found_nic()
Line 618... Line 618...
618
    rmmod mii > /dev/null 2>&1
618
    rmmod mii > /dev/null 2>&1
619
}
619
}
620
 
620
 
621
 
621
 
622
# get DHCP lease
622
# get DHCP lease
623
# Urs Beyerle, PSI
623
# Urs Beyerle
624
#
624
#
625
get_dhcp_lease()
625
get_dhcp_lease()
626
{
626
{
627
    # create /dev/urandom (needed by udhcpc)
627
    # create /dev/urandom (needed by udhcpc)
628
    mknod /dev/urandom c 1 9
628
    mknod /dev/urandom c 1 9