Changeset 1933be2 in clfs-embedded


Ignore:
Timestamp:
Sep 8, 2009, 4:33:21 AM (15 years ago)
Author:
Maarten Lankhorst <mlankhorst@…>
Branches:
master
Children:
67b70f4
Parents:
2e856a4
Message:

bootscripts: Updates, and add a network bridge startup file

Location:
bootscripts
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/Makefile

    r2e856a4 r1933be2  
    2828        ln -sf ../init.d/sshd ${EXTDIR}/rc.d/stop/K30sshd
    2929
    30 .PHONY: all create-dirs install install-dropbear
     30install-bridge: create-dirs
     31        install -m ${MODE} clfs/rc.d/init.d/bridge ${EXTDIR}/rc.d/init.d/
     32        ln -sf ../init.d/bridge ${EXTDIR}/rc.d/start/S09bridge
     33        ln -sf ../init.d/bridge ${EXTDIR}/rc.d/stop/K81bridge
     34
     35.PHONY: all create-dirs install install-dropbear install-bridge
  • bootscripts/clfs/rc.d/init.d/network

    r2e856a4 r1933be2  
    5656                        check_status
    5757                        if [ "$DHCP" = "yes" ]; then
    58                                 kill `cat "/var/run/udhcpc.$INTERFACE.pid"`
     58                                kill `cat "/var/run/udhcpc.$INTERFACE.pid"` 2>/dev/null || echo true
    5959                                sleep 1
    6060                        fi
  • bootscripts/clfs/rc.d/init.d/syslog

    r2e856a4 r1933be2  
    66. /etc/rc.d/init.d/functions
    77
    8 SYSLOG_ROTATE_SIZE=80kb
     8SYSLOG_ROTATE_SIZE=65536
    99
    1010case "$1" in
  • bootscripts/clfs/rc.d/shutdown

    r2e856a4 r1933be2  
    2020done
    2121
    22 if [ -x /sbin/hwclock ]; then
     22if [ -x /sbin/hwclock ] && [ -e /dev/rtc ]; then
    2323        echo -n "Syncing hardware clock to system clock:"
    2424        hwclock --systohc --utc
     
    3838echo -n "Unmounting all filesystems: "
    3939umount -a -r
     40
  • bootscripts/clfs/rc.d/startup

    r2e856a4 r1933be2  
    1111/bin/mkdir /dev/shm
    1212/bin/echo "/sbin/mdev" > /proc/sys/kernel/hotplug
     13
     14echo -n "Starting mdev: "
    1315/sbin/mdev -s
     16check_status
    1417
    15 if [ -x /sbin/hwclock ]; then
     18echo -n "Mounting devpts: "
     19mount /dev/pts
     20check_status
     21
     22if [ -x /sbin/hwclock ] && [ -e /dev/rtc ]; then
    1623        echo -n "Setting system clock: "
    1724        hwclock --hctosys --utc
     
    2027
    2128if [ -x /sbin/fsck ]; then
    22         echo "Starting fsck for root filesystem."
    23         fsck -T -C /
     29        echo "Starting fsck for local filesystems."
     30        fsck -A -C -R -T -t nonfs,nosmbfs
    2431        if [ "$?" -gt 2 ]; then
    25                 echo "WARNING: Errors found while checking root filesystem."
     32                echo "WARNING: Errors found while checking filesystems."
    2633                echo "You can login as root now, the system will reboot after logout."
    2734                sulogin
     
    3239                reboot
    3340        else
    34                 echo -n "Checking root filesystem: "
     41                echo -n "Checking local filesystems: "
    3542                check_status
    3643        fi
    3744fi
    3845
    39 echo -n "Remounting root rw: "
    40 mount -o remount,rw /
    41 check_status
    42 
    43 echo -n "Mounting devpts: "
    44 mount /dev/pts
    45 check_status
    46 
    47 echo "Starting fsck for local filesystems."
    48 fsck -A -C -R -T -t nonfs,nosmbfs
    49 if [ "$?" -gt 2 ]; then
    50         echo "WARNING: Errors found while checking filesystems."
    51         echo "You can login as root now, the system will reboot after logout."
    52         sulogin
    53         reboot
    54 elif [ "$?" = "2" ]; then
    55         echo "NOTICE: System needs to be rebooted now."
    56         sleep 1
    57         reboot
    58 else
    59         echo -n "Checking local filesystems: "
    60         check_status
    61 fi
    6246
    6347if [ -x /sbin/swapon ]; then
     
    6650        check_status
    6751fi
     52
     53echo -n "Remounting root rw: "
     54mount -o remount,rw /
     55check_status
    6856
    6957echo -n "Setting hostname: "
     
    9482        fi
    9583done
     84
     85exit 0
Note: See TracChangeset for help on using the changeset viewer.