Changeset 609a9e7 in bootscripts-standard for bootscripts


Ignore:
Timestamp:
May 15, 2014, 11:50:36 PM (10 years ago)
Author:
William Harrington <kb0iic@…>
Branches:
master
Children:
8b29156
Parents:
84f3ac2
Message:

Bring bootscripts up to date with 2.0-pre1

Location:
bootscripts
Files:
2 added
7 edited
1 moved

Legend:

Unmodified
Added
Removed
  • bootscripts/Makefile

    r84f3ac2 r609a9e7  
    1 VERSION         := 1.2-pre10
     1VERSION         := 1.2-pre11
    22
    33ETCDIR          := /etc
     
    421421        ln -sf ../init.d/kerberos ${EXTDIR}/rc.d/rc6.d/K42kerberos
    422422
     423install-LCDd: create-dirs
     424        install -m ${MODE} cblfs/init.d/LCDd ${EXTDIR}/rc.d/init.d/
     425        ln -sf  ../init.d/LCDd ${EXTDIR}/rc.d/rc0.d/K65LCDd
     426        ln -sf  ../init.d/LCDd ${EXTDIR}/rc.d/rc1.d/K65LCDd
     427        ln -sf  ../init.d/LCDd ${EXTDIR}/rc.d/rc2.d/K65LCDd
     428        ln -sf  ../init.d/LCDd ${EXTDIR}/rc.d/rc3.d/S35LCDd
     429        ln -sf  ../init.d/LCDd ${EXTDIR}/rc.d/rc4.d/S35LCDd
     430        ln -sf  ../init.d/LCDd ${EXTDIR}/rc.d/rc5.d/S35LCDd
     431        ln -sf  ../init.d/LCDd ${EXTDIR}/rc.d/rc6.d/K65LCDd
     432
     433install-lcdproc: install-LCDd create-dirs
     434        install -m ${MODE} cblfs/init.d/lcdproc ${EXTDIR}/rc.d/init.d/
     435        ln -sf  ../init.d/lcdproc ${EXTDIR}/rc.d/rc0.d/K60lcdproc
     436        ln -sf  ../init.d/lcdproc ${EXTDIR}/rc.d/rc1.d/K60lcdproc
     437        ln -sf  ../init.d/lcdproc ${EXTDIR}/rc.d/rc2.d/K60lcdproc
     438        ln -sf  ../init.d/lcdproc ${EXTDIR}/rc.d/rc3.d/S40lcdproc
     439        ln -sf  ../init.d/lcdproc ${EXTDIR}/rc.d/rc4.d/S40lcdproc
     440        ln -sf  ../init.d/lcdproc ${EXTDIR}/rc.d/rc5.d/S40lcdproc
     441        ln -sf  ../init.d/lcdproc ${EXTDIR}/rc.d/rc6.d/K60lcdproc
     442
    423443install-lisa: create-dirs
    424444        install -m ${MODE} cblfs/init.d/lisa       ${EXTDIR}/rc.d/init.d/
     
    908928        rm -f ${EXTDIR}/rc.d/rc5.d/S28kerberos
    909929        rm -f ${EXTDIR}/rc.d/rc6.d/K42kerberos
     930
     931uninstall-LCDd:
     932        rm -f ${EXTDIR}/rc.d/init.d/LCDd
     933        rm -f ${EXTDIR}/rc.d/rc0.d/K65LCDd
     934        rm -f ${EXTDIR}/rc.d/rc1.d/K65LCDd
     935        rm -f ${EXTDIR}/rc.d/rc2.d/K65LCDd
     936        rm -f ${EXTDIR}/rc.d/rc3.d/S35LCDd
     937        rm -f ${EXTDIR}/rc.d/rc4.d/S35LCDd
     938        rm -f ${EXTDIR}/rc.d/rc5.d/S35LCDd
     939        rm -f ${EXTDIR}/rc.d/rc6.d/K65LCDd
     940
     941uninstall-lcdproc: uninstall-LCDd
     942        rm -f ${EXTDIR}/rc.d/init.d/lcdproc
     943        rm -f ${EXTDIR}/rc.d/rc0.d/K60lcdproc
     944        rm -f ${EXTDIR}/rc.d/rc1.d/K60lcdproc
     945        rm -f ${EXTDIR}/rc.d/rc2.d/K60lcdproc
     946        rm -f ${EXTDIR}/rc.d/rc3.d/S40lcdproc
     947        rm -f ${EXTDIR}/rc.d/rc4.d/S40lcdproc
     948        rm -f ${EXTDIR}/rc.d/rc5.d/S40lcdproc
     949        rm -f ${EXTDIR}/rc.d/rc6.d/K60lcdproc
    910950
    911951uninstall-lisa:
     
    12451285        install-iptables \
    12461286        install-kerberos \
     1287        install-LCDd \
     1288        install-lcdproc \
    12471289        install-lisa \
    12481290        install-lprng \
     
    12871329        uninstall-iptables \
    12881330        uninstall-kerberos \
     1331        uninstall-LCDd \
     1332        uninstall-lcdproc \
    12891333        uninstall-lisa \
    12901334        uninstall-lprng \
  • bootscripts/cblfs/init.d/ntp

    r84f3ac2 r609a9e7  
    1414                boot_mesg "Starting ntpd..."
    1515                ntpd -gqx
    16                 loadproc -p $pidfile /usr/sbin/ntpd
     16                loadproc /usr/sbin/ntpd -p $pidfile
    1717                ;;
    1818
  • bootscripts/clfs/init.d/cleanfs

    r84f3ac2 r609a9e7  
    7979                        -delete || failed=1
    8080
    81                 boot_mesg -n " /var/lock" ${NORMAL}
    82                 cd /var/lock &&
    83                 find . -type f ! -newer /proc -exec rm -f {} \; || failed=1
    84 
    85                 boot_mesg " /var/run" ${NORMAL}
    86                 cd /var/run &&
    87                 find . ! -type d ! -name utmp ! -newer /proc \
    88                         -exec rm -f {} \; || failed=1
    8981                > /var/run/utmp
    9082                if grep -q '^utmp:' /etc/group ; then
     
    9587                (exit ${failed})
    9688                evaluate_retval
    97 
     89                boot_mesg "" ${NORMAL}
    9890                if [ -e /etc/sysconfig/createfiles ]; then
    9991                        if egrep -qv '^(#|$)' /etc/sysconfig/createfiles 2>/dev/null; then
  • bootscripts/clfs/init.d/functions.minimal

    r84f3ac2 r609a9e7  
    2727# Setup default values for environment
    2828umask 022
    29 export PATH="/bin:/usr/bin:/sbin:/usr/sbin"
     29export PATH="/tools/bin:/tools/sbin:/bin:/sbin"
    3030
    3131# Signal sent to running processes to refresh their configuration
  • bootscripts/clfs/init.d/mountfs

    r84f3ac2 r609a9e7  
    3030                mount -f /proc || failed=1
    3131                mount -f /sys || failed=1
     32                mount -f /run || failed=1
     33                mount -f /dev || failed=1
    3234                (exit ${failed})
    3335                evaluate_retval
  • bootscripts/clfs/init.d/mountkernfs

    r84f3ac2 r609a9e7  
    2222                if ! mountpoint /proc >/dev/null; then
    2323                        boot_mesg -n " /proc" ${NORMAL}
    24                         mount -n /proc || failed=1
     24                        mount -n -o nosuid,noexec,nodev -t proc proc /proc || failed=1
    2525                fi
    2626
    2727                if ! mountpoint /sys >/dev/null; then
    2828                        boot_mesg -n " /sys" ${NORMAL}
    29                         mount -n /sys || failed=1
     29                        mount -n -o nosuid,noexec,nodev -t sysfs sys /sys || failed=1
    3030                fi
    31 
    32                 boot_mesg "" ${NORMAL}
    33 
     31                if ! mountpoint /run >/dev/null; then
     32                        boot_mesg -n " /run" ${NORMAL}
     33                        mount -n -o mode=0755,nosuid,nodev -t tmpfs run /run || failed=1
     34                fi
     35                if ! mountpoint /dev >/dev/null; then
     36                        boot_mesg -n " /dev" ${NORMAL}
     37                        mount -n -o mode=0755,nosuid -t devtmpfs dev /dev || failed=1
     38                fi
    3439                (exit ${failed})
    35                 evaluate_retval
     40                                       
     41                mkdir -m 1777 /run/lock
     42                mkdir -p /dev/{pts,shm}           
    3643                ;;
    3744
  • bootscripts/clfs/init.d/sendsignals

    r84f3ac2 r609a9e7  
    2424                sleep ${KILLDELAY}
    2525
    26                 if [ "${error_value}" = 0 ]; then
     26                if [ "${error_value}" = 0 -o "${error_value}" = 2 ]; then
    2727                        echo_ok
    2828                else
     
    3636                sleep ${KILLDELAY}
    3737
    38                 if [ "${error_value}" = 0 ]; then
     38                if [ "${error_value}" = 0 -o "${error_value}" = 2 ]; then
    3939                        echo_ok
    4040                else
  • bootscripts/clfs/init.d/udev

    • Property mode changed from 100755 to 100644
    r84f3ac2 r609a9e7  
    2222case "$1" in
    2323    start)
    24         boot_mesg "Creating /dev in tmpfs..."
    25         mount -n -t tmpfs -o mode=0755 udev /dev
    26         evaluate_retval
    27 
    28         boot_mesg "Copying static entries..."
    29         cp --preserve=all --recursive --remove-destination /lib/udev/devices/* /dev
    30         evaluate_retval
    31        
    32         boot_mesg "Setting Permissons on /dev/shm..."
    33         chmod 1777 /dev/shm
    34         evaluate_retval
    35 
    3624        echo "" > /sys/kernel/uevent_helper
    3725
    3826        # start udevd
    39         boot_mesg "Starting udevd..."
     27        boot_mesg "\nStarting udevd..."
    4028        /sbin/udevd --daemon
    4129        evaluate_retval
     
    4533
    4634        # unlikely, but we may be faster than the first event
    47         mkdir -p /dev/.udev/queue
     35        #mkdir -p /run/.udev/queue
    4836
    4937        # configure all devices
    50         /sbin/udevadm trigger
     38        /sbin/udevadm trigger --action=add --type=subsystems
     39        /sbin/udevadm trigger --action=add --type=devices
    5140       
    5241        # this replaces the old loop, exits after all devices are done
     
    7261        ;;
    7362
    74     reload)
    75         boot_mesg "Reloading udev rules..."
    76         udevadm control reload_rules
    77         cp --preserve=all --recursive --update /lib/udev/devices/* /dev
    78         evaluate_retval
    79         ;;
    80 
    81     force-reload)
    82         boot_mesg "Updating all available device nodes in /dev..."
    83         udevadm control reload_rules
    84         rm -rf /dev/.udev /dev/disk
    85         cp --preserve=all --recursive --update /lib/udev/devices/* /dev
    86         /sbin/udevadm trigger
    87         /sbin/udevadm settle
    88         evaluate_retval
    89         ;;
    90 
    9163    *)
    9264        echo "Usage: $0 {start|stop|restart|status|reload|force-reload}"
Note: See TracChangeset for help on using the changeset viewer.