Changeset 1933be2 in clfs-embedded
- Timestamp:
- Sep 8, 2009, 4:33:21 AM (15 years ago)
- Branches:
- master
- Children:
- 67b70f4
- Parents:
- 2e856a4
- Location:
- bootscripts
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/Makefile
r2e856a4 r1933be2 28 28 ln -sf ../init.d/sshd ${EXTDIR}/rc.d/stop/K30sshd 29 29 30 .PHONY: all create-dirs install install-dropbear 30 install-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 56 56 check_status 57 57 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 59 59 sleep 1 60 60 fi -
bootscripts/clfs/rc.d/init.d/syslog
r2e856a4 r1933be2 6 6 . /etc/rc.d/init.d/functions 7 7 8 SYSLOG_ROTATE_SIZE= 80kb8 SYSLOG_ROTATE_SIZE=65536 9 9 10 10 case "$1" in -
bootscripts/clfs/rc.d/shutdown
r2e856a4 r1933be2 20 20 done 21 21 22 if [ -x /sbin/hwclock ] ; then22 if [ -x /sbin/hwclock ] && [ -e /dev/rtc ]; then 23 23 echo -n "Syncing hardware clock to system clock:" 24 24 hwclock --systohc --utc … … 38 38 echo -n "Unmounting all filesystems: " 39 39 umount -a -r 40 -
bootscripts/clfs/rc.d/startup
r2e856a4 r1933be2 11 11 /bin/mkdir /dev/shm 12 12 /bin/echo "/sbin/mdev" > /proc/sys/kernel/hotplug 13 14 echo -n "Starting mdev: " 13 15 /sbin/mdev -s 16 check_status 14 17 15 if [ -x /sbin/hwclock ]; then 18 echo -n "Mounting devpts: " 19 mount /dev/pts 20 check_status 21 22 if [ -x /sbin/hwclock ] && [ -e /dev/rtc ]; then 16 23 echo -n "Setting system clock: " 17 24 hwclock --hctosys --utc … … 20 27 21 28 if [ -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 24 31 if [ "$?" -gt 2 ]; then 25 echo "WARNING: Errors found while checking root filesystem."32 echo "WARNING: Errors found while checking filesystems." 26 33 echo "You can login as root now, the system will reboot after logout." 27 34 sulogin … … 32 39 reboot 33 40 else 34 echo -n "Checking root filesystem: "41 echo -n "Checking local filesystems: " 35 42 check_status 36 43 fi 37 44 fi 38 45 39 echo -n "Remounting root rw: "40 mount -o remount,rw /41 check_status42 43 echo -n "Mounting devpts: "44 mount /dev/pts45 check_status46 47 echo "Starting fsck for local filesystems."48 fsck -A -C -R -T -t nonfs,nosmbfs49 if [ "$?" -gt 2 ]; then50 echo "WARNING: Errors found while checking filesystems."51 echo "You can login as root now, the system will reboot after logout."52 sulogin53 reboot54 elif [ "$?" = "2" ]; then55 echo "NOTICE: System needs to be rebooted now."56 sleep 157 reboot58 else59 echo -n "Checking local filesystems: "60 check_status61 fi62 46 63 47 if [ -x /sbin/swapon ]; then … … 66 50 check_status 67 51 fi 52 53 echo -n "Remounting root rw: " 54 mount -o remount,rw / 55 check_status 68 56 69 57 echo -n "Setting hostname: " … … 94 82 fi 95 83 done 84 85 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.