source:
bootscripts/contrib/lfs-bootscripts-raq2-9.patch@
0c3999a
Last change on this file since 0c3999a was 163a6701, checked in by , 19 years ago | |
---|---|
|
|
File size: 20.0 KB |
-
bootscripts
Submitted By: Jim Gifford (patches at jg555 dot com) Date: 2005-07-01 Initial Package Version: 3.2.2 Origin: Jim Gifford Upstream Status: in contrib Description: Allows bootscripts to use LCD Screen on RaQ2 diff -Naur bootscripts.orig/Makefile bootscripts/Makefile
old new 28 28 install -m ${MODE} lfs/init.d/halt ${EXTDIR}/rc.d/init.d/ 29 29 install -m ${MODE} lfs/init.d/console ${EXTDIR}/rc.d/init.d/ 30 30 install -m ${MODE} lfs/init.d/hotplug ${EXTDIR}/rc.d/init.d/ 31 install -m ${MODE} lfs/init.d/paneld ${EXTDIR}/rc.d/init.d/ 31 32 install -m ${MODE} lfs/init.d/localnet ${EXTDIR}/rc.d/init.d/ 32 33 install -m ${MODE} lfs/init.d/modules ${EXTDIR}/rc.d/init.d/ 33 34 install -m ${MODE} lfs/init.d/mountfs ${EXTDIR}/rc.d/init.d/ … … 42 43 install -m ${MODE} lfs/init.d/sysctl ${EXTDIR}/rc.d/init.d/ 43 44 install -m ${MODE} lfs/init.d/template ${EXTDIR}/rc.d/init.d/ 44 45 install -m ${MODE} lfs/init.d/udev ${EXTDIR}/rc.d/init.d/ 46 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc1.d/K01paneld 45 47 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc0.d/K80network 46 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc0.d/K90sysklogd48 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc0.d/K90sysklogd 47 49 ln -sf ../init.d/hotplug ${EXTDIR}/rc.d/rc0.d/S50hotplug 48 50 ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc0.d/S60sendsignals 49 51 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc0.d/S70mountfs 50 52 ln -sf ../init.d/swap ${EXTDIR}/rc.d/rc0.d/S80swap 51 53 ln -sf ../init.d/localnet ${EXTDIR}/rc.d/rc0.d/S90localnet 52 54 ln -sf ../init.d/halt ${EXTDIR}/rc.d/rc0.d/S99halt 55 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc1.d/S99paneld 53 56 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc1.d/K80network 54 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc1.d/K90sysklogd 57 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc1.d/K90sysklogd 58 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc2.d/S99paneld 55 59 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc2.d/K80network 56 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc2.d/K90sysklogd 57 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc3.d/S10sysklogd 60 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc2.d/K90sysklogd 61 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc3.d/S10sysklogd 62 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc3.d/S99paneld 58 63 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc3.d/S20network 59 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc4.d/S10sysklogd 64 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc4.d/S10sysklogd 65 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc4.d/S99paneld 60 66 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc4.d/S20network 61 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc5.d/S10sysklogd 67 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc5.d/S10sysklogd 68 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc5.d/S99paneld 62 69 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc5.d/S20network 70 ln -sf ../init.d/paneld ${EXTDIR}/rc.d/rc6.d/K01paneld 63 71 ln -sf ../init.d/network ${EXTDIR}/rc.d/rc6.d/K80network 64 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc6.d/K90sysklogd72 ln -sf ../init.d/sysklogd ${EXTDIR}/rc.d/rc6.d/K90sysklogd 65 73 ln -sf ../init.d/hotplug ${EXTDIR}/rc.d/rc6.d/S50hotplug 66 74 ln -sf ../init.d/sendsignals ${EXTDIR}/rc.d/rc6.d/S60sendsignals 67 75 ln -sf ../init.d/mountfs ${EXTDIR}/rc.d/rc6.d/S70mountfs -
lfs/init.d/checkfs
diff -Naur bootscripts.orig/lfs/init.d/checkfs bootscripts/lfs/init.d/checkfs
old new 33 33 if [ -f /fastboot ]; then 34 34 boot_mesg -n "/fastboot found, will not perform" ${INFO} 35 35 boot_mesg " file system checks as requested." 36 putlcd "Fast boot" "requested" 36 37 echo_ok 37 38 exit 0 38 39 fi 39 40 40 41 boot_mesg "Mounting root file system in read-only mode..." 42 putlcd "Mounting / in" "read-only mode" 41 43 mount -n -o remount,ro / >/dev/null 42 44 evaluate_retval 43 45 … … 48 50 boot_mesg -n " in read-only mode.\n\nAfter you" 49 51 boot_mesg -n " press Enter, this system will be" 50 52 boot_mesg -n " halted and powered off." 51 boot_mesg -n "\n\nPress enter to continue..." ${INFO}52 53 boot_mesg "" ${NORMAL} 53 read ENTER 54 putlcd "FileSystem Error" "Halting System" 55 sleep 10 54 56 /etc/rc.d/init.d/halt stop 55 57 fi 56 58 57 59 if [ -f /forcefsck ]; then 58 60 boot_mesg -n "/forcefsck found, forcing file" ${INFO} 59 61 boot_mesg " system checks as requested." 62 putlcd "Forcing file" "system check" 60 63 echo_ok 61 64 options="-f" 62 65 else … … 64 67 fi 65 68 66 69 boot_mesg "Checking file systems..." 70 putlcd "Checking file" "systems..." 67 71 # Note: -a option used to be -p; but this fails e.g. 68 72 # on fsck.minix 69 73 fsck ${options} -a -A -C -T 2>/dev/null … … 90 94 boot_mesg -n " errors require this system to be" 91 95 boot_mesg -n " rebooted.\n\nAfter you press enter," 92 96 boot_mesg -n " this system will be rebooted" 93 boot_mesg -n "\n\nPress Enter to continue..." ${INFO}94 97 boot_mesg "" ${NORMAL} 95 read ENTER 98 putlcd "Errors corrected" "Rebooting" 99 sleep 5 96 100 reboot -f 97 101 fi 98 102 … … 107 111 boot_mesg -n " System Administrator.\n\nAfter you" 108 112 boot_mesg -n " press Enter, this system will be" 109 113 boot_mesg -n " halted and powered off." 110 boot_mesg -n "\n\nPress Enter to continue..." ${INFO}111 114 boot_mesg "" ${NORMAL} 112 read ENTER 115 putlcd "FileSystem Error" "Halting System" 116 sleep 10 113 117 /etc/rc.d/init.d/halt stop 114 118 fi 115 119 -
lfs/init.d/cleanfs
diff -Naur bootscripts.orig/lfs/init.d/cleanfs bootscripts/lfs/init.d/cleanfs
old new 72 72 case "${1}" in 73 73 start) 74 74 boot_mesg -n "Cleaning file systems:" ${INFO} 75 putlcd "Cleaning file" "systems:" 75 76 76 77 boot_mesg -n " /tmp" ${NORMAL} 78 putlcd "Cleaning:" "/tmp" 77 79 cd /tmp && 78 80 find . -xdev -mindepth 1 ! -name lost+found \ 79 81 -delete || failed=1 80 82 81 83 boot_mesg -n " /var/lock" ${NORMAL} 84 putlcd "Cleaning:" "/var/lock" 82 85 cd /var/lock && 83 86 find . -type f ! -newer /proc -exec rm -f {} \; || failed=1 84 87 85 88 boot_mesg " /var/run" ${NORMAL} 89 putlcd "Cleaning:" "/var/run" 86 90 cd /var/run && 87 91 find . ! -type d ! -name utmp ! -newer /proc \ 88 92 -exec rm -f {} \; || failed=1 … … 97 101 98 102 if egrep -qv '^(#|$)' /etc/sysconfig/createfiles 2>/dev/null; then 99 103 boot_mesg "Creating files and directories..." 104 putlcd "Creating files" "and directories" 100 105 create_files 101 106 evaluate_retval 102 107 fi -
lfs/init.d/console
diff -Naur bootscripts.orig/lfs/init.d/console bootscripts/lfs/init.d/console
old new 25 25 start) 26 26 if [ -n "${KEYMAP}" ]; then 27 27 boot_mesg "Loading keymap: ${KEYMAP}..." 28 putlcd "Loading keymap:" "${KEYMAP}" 28 29 loadkeys ${KEYMAP} &>/dev/null 29 30 evaluate_retval 30 31 fi 31 32 32 33 if [ -n "${KEYMAP_CORRECTIONS}" ]; then 33 34 boot_mesg "Loading keymap corrections: ${KEYMAP_CORRECTIONS}..." 35 putlcd "Loading keymap" "corrections" 34 36 loadkeys ${KEYMAP_CORRECTIONS} &>/dev/null 35 37 evaluate_retval 36 38 fi 37 39 38 40 if [ -n "${FONT}" ]; then 39 41 boot_mesg "Setting screen font to ${FONT}..." 42 putlcd "Setting font" "to $FONT" 40 43 setfont $FONT &>/dev/null 41 44 evaluate_retval 42 45 fi -
lfs/init.d/functions
diff -Naur bootscripts.orig/lfs/init.d/functions bootscripts/lfs/init.d/functions
old new 263 263 boot_mesg -n " the LFS book, please be so kind to inform us at" 264 264 boot_mesg " lfs-dev@linuxfromscratch.org.\n" 265 265 boot_mesg_flush 266 boot_mesg -n "Press Enter to continue..." ${INFO} 266 putlcd "BootScript Error" "view bootlog" 267 sleep 20 267 268 boot_mesg "" ${NORMAL} 268 269 read ENTER 269 270 } -
lfs/init.d/hotplug
diff -Naur bootscripts.orig/lfs/init.d/hotplug bootscripts/lfs/init.d/hotplug
old new 18 18 case "${1}" in 19 19 start|restart) 20 20 boot_mesg "Loading modules for system devices..." 21 putlcd "Loading modules" "for devices" 21 22 for rc in /etc/hotplug/*.rc 22 23 do 23 24 ${rc} ${1} -
lfs/init.d/localnet
diff -Naur bootscripts.orig/lfs/init.d/localnet bootscripts/lfs/init.d/localnet
old new 19 19 case "${1}" in 20 20 start) 21 21 boot_mesg "Bringing up the loopback interface..." 22 putlcd "Loopback:" "Up" 22 23 ip addr add 127.0.0.1/8 label lo dev lo 23 24 ip link set lo up 24 25 evaluate_retval 25 26 26 27 boot_mesg "Setting hostname to ${HOSTNAME}..." 28 putlcd "Hostname:" "${HOSTNAME}" 27 29 hostname ${HOSTNAME} 28 30 evaluate_retval 29 31 ;; 30 32 31 33 stop) 32 34 boot_mesg "Bringing down the loopback interface..." 35 putlcd "Loopback:" "Down" 33 36 ip link set lo down 34 37 evaluate_retval 35 38 ;; -
lfs/init.d/modules
diff -Naur bootscripts.orig/lfs/init.d/modules bootscripts/lfs/init.d/modules
old new 60 60 # otherwise take note. 61 61 if [ ${?} -eq 0 ]; then 62 62 boot_mesg -n " ${module}" ${NORMAL} 63 putlcd "Module:" "${module}" 63 64 else 64 65 failedmod="${failedmod} ${module}" 65 66 fi -
lfs/init.d/mountfs
diff -Naur bootscripts.orig/lfs/init.d/mountfs bootscripts/lfs/init.d/mountfs
old new 18 18 case "${1}" in 19 19 start) 20 20 boot_mesg "Remounting root file system in read-write mode..." 21 putlcd "Remounting:" "/" 21 22 mount -n -o remount,rw / &>/dev/null 22 23 evaluate_retval 23 24 … … 25 26 rm -f /fastboot /forcefsck 26 27 27 28 boot_mesg "Recording existing mounts in /etc/mtab..." 29 putlcd "Recording mounts" "in /etc/mtab" 28 30 > /etc/mtab 29 31 mount -f / || failed=1 30 32 mount -f /proc || failed=1 … … 35 37 # This will mount all filesystems that do not have _netdev in 36 38 # their option list. _netdev denotes a network filesystem. 37 39 boot_mesg "Mounting remaining file systems..." 40 putlcd "Mounting:" "file systems" 38 41 mount -a -O no_netdev &>/dev/null 39 42 evaluate_retval 40 43 ;; 41 44 42 45 stop) 43 46 boot_mesg "Unmounting all other currently mounted file systems..." 47 putlcd "Unmounting:" "file systems" 44 48 umount -a -d -r &>/dev/null 45 49 evaluate_retval 46 50 ;; -
lfs/init.d/paneld
diff -Naur bootscripts.orig/lfs/init.d/paneld bootscripts/lfs/init.d/paneld
old new 1 #!/bin/sh 2 ######################################################################## 3 # Begin $rc_base/init.d/paneld 4 # 5 # Description : Show Messages on the LCD Panel 6 # 7 # Author : Jim Gifford - jim@linuxfromscratch.org 8 # 9 # Version : 00.00 10 # 11 # Notes : 12 # 13 ######################################################################## 14 15 . /etc/sysconfig/rc 16 . $rc_functions 17 18 case "$1" in 19 start) 20 boot_mesg "Setting up LCD Panel" 21 ip addr show dev eth0 > /dev/null 2>&1 22 if [ "$?" = "0" ]; then 23 IFACE1_IP="`ip addr show dev eth0 | grep inet | cut -d / -f 1 | cut -d t -f 2 | cut -d' ' -f 2 `" 24 IFACE1="$IFACE1_IP" 25 fi 26 ip addr show dev eth1 > /dev/null 2>&1 27 if [ "$?" = "0" ]; then 28 IFACE2_IP="`ip addr show dev eth1 | grep inet | cut -d / -f 1 | cut -d t -f 2 | cut -d' ' -f 2 `" 29 IFACE2="$IFACE2_IP" 30 fi 31 COMMON="Hold S & E Menu" 32 if [ "$IFACE2" = "" ]; then 33 loadproc paneld -d "Lan1 $IFACE1" "$COMMON" 34 else 35 loadproc paneld -d "Lan1 $IFACE1" "Lan2 $IFACE2" "$COMMON" 36 fi 37 38 ;; 39 40 stop) 41 boot_mesg "Clearing LCD Panel..." 42 putlcd "Clearing" "LCD Panel" 43 killproc paneld 44 ;; 45 46 restart) 47 ${0} stop 48 sleep 1 49 ${0} start 50 ;; 51 52 status) 53 statusproc paneld 54 ;; 55 56 *) 57 echo "Usage: {start|stop|restart|status}" 58 exit 1 59 ;; 60 esac 61 62 # End $rc_base/init.d/paneld 63 -
lfs/init.d/rc
diff -Naur bootscripts.orig/lfs/init.d/rc bootscripts/lfs/init.d/rc
old new 33 33 34 34 if [ ! -d ${rc_base}/rc${runlevel}.d ]; then 35 35 boot_mesg "${rc_base}/rc${runlevel}.d does not exist." ${WARNING} 36 putlcd "${rc_base}/rc${runlevel}.d" "does not exist." 36 37 boot_mesg_flush 37 38 exit 1 38 39 fi … … 56 57 boot_mesg -n " not started in the previous" 57 58 boot_mesg -n " runlevel (${previous})." 58 59 boot_mesg "" ${NORMAL} 60 putlcd "BootScript Error" "view bootlog" 61 sleep 20 59 62 boot_mesg_flush 60 63 continue 61 64 fi … … 92 95 esac 93 96 error_value=${?} 94 97 95 if [ "${error_value}" != "0" ]; 98 if [ "${error_value}" != "0" ]; then 96 99 print_error_msg 97 100 fi 98 101 done -
lfs/init.d/reboot
diff -Naur bootscripts.orig/lfs/init.d/reboot bootscripts/lfs/init.d/reboot
old new 17 17 18 18 case "${1}" in 19 19 stop) 20 boot_mesg "Restarting system..."21 20 reboot -d -f -i 22 21 ;; 23 22 -
lfs/init.d/sendsignals
diff -Naur bootscripts.orig/lfs/init.d/sendsignals bootscripts/lfs/init.d/sendsignals
old new 18 18 case "${1}" in 19 19 stop) 20 20 boot_mesg "Sending all processes the TERM signal..." 21 putlcd "Sending:" "TERM signal" 21 22 killall5 -15 22 23 error_value=${?} 23 24 … … 30 31 fi 31 32 32 33 boot_mesg "Sending all processes the KILL signal..." 34 putlcd "Sending:" "KILL signal" 33 35 killall5 -9 34 36 error_value=${?} 35 37 -
lfs/init.d/setclock
diff -Naur bootscripts.orig/lfs/init.d/setclock bootscripts/lfs/init.d/setclock
old new 32 32 case ${1} in 33 33 start) 34 34 boot_mesg "Setting system clock..." 35 putlcd "Setting:" "system clock" 35 36 hwclock --hctosys ${CLOCKPARAMS} &>/dev/null 36 37 evaluate_retval 37 38 ;; 38 39 39 40 stop) 40 41 boot_mesg "Setting hardware clock..." 42 putlcd "Setting:" "hardware clock" 41 43 hwclock --systohc ${CLOCKPARAMS} &>/dev/null 42 44 evaluate_retval 43 45 ;; -
lfs/init.d/swap
diff -Naur bootscripts.orig/lfs/init.d/swap bootscripts/lfs/init.d/swap
old new 18 18 case "${1}" in 19 19 start) 20 20 boot_mesg "Activating all swap files/partitions..." 21 putlcd "Activating:" "swap" 21 22 swapon -a 22 23 evaluate_retval 23 24 ;; 24 25 25 26 stop) 26 27 boot_mesg "Deactivating all swap files/partitions..." 28 putlcd "Deactivating:" "swap" 27 29 swapoff -a 28 30 evaluate_retval 29 31 ;; -
lfs/init.d/sysctl
diff -Naur bootscripts.orig/lfs/init.d/sysctl bootscripts/lfs/init.d/sysctl
old new 21 21 start) 22 22 if [ -f "/etc/sysctl.conf" ]; then 23 23 boot_mesg "Setting kernel runtime parameters..." 24 putlcd "Utilizing:" "sysctl" 24 25 sysctl -q -p 25 26 evaluate_retval 26 27 fi -
lfs/init.d/sysklogd
diff -Naur bootscripts.orig/lfs/init.d/sysklogd bootscripts/lfs/init.d/sysklogd
old new 18 18 case "${1}" in 19 19 start) 20 20 boot_mesg "Starting system log daemon..." 21 putlcd "Starting:" "system log" 21 22 loadproc syslogd -m 0 22 23 23 24 boot_mesg "Starting kernel log daemon..." 25 putlcd "Starting:" "kernel log" 24 26 loadproc klogd 25 27 ;; 26 28 27 29 stop) 28 30 boot_mesg "Stopping kernel log daemon..." 31 putlcd "Stopping:" "system log" 29 32 killproc klogd 30 33 31 34 boot_mesg "Stopping system log daemon..." 35 putlcd "Stopping:" "kernel log" 32 36 killproc syslogd 33 37 ;; 34 38 -
lfs/init.d/udev
diff -Naur bootscripts.orig/lfs/init.d/udev bootscripts/lfs/init.d/udev
old new 39 39 boot_mesg -n " will be halted and powered off." 40 40 boot_mesg -n "\n\nPress Enter to continue..." ${INFO} 41 41 boot_mesg "" ${NORMAL} 42 read ENTER 42 putlcd "BootScript Error" "view bootlog" 43 sleep 20 43 44 /etc/rc.d/init.d/halt stop 44 45 fi 45 46 … … 57 58 boot_mesg -n " will be halted and powered off." 58 59 boot_mesg -n "\n\nPress Enter to continue..." ${INFO} 59 60 boot_mesg "" ${NORMAL} 60 read ENTER 61 putlcd "BootScript Error" "view bootlog" 62 sleep 20 61 63 /etc/rc.d/init.d/halt stop 62 64 fi 63 65 -
lfs/sysconfig/network-devices/ifdown
diff -Naur bootscripts.orig/lfs/sysconfig/network-devices/ifdown bootscripts/lfs/sysconfig/network-devices/ifdown
old new 69 69 IFCONFIG=${file} ${network_devices}/services/${SERVICE} ${1} down 70 70 else 71 71 boot_mesg "Interface ${1} doesn't exist." ${WARNING} 72 putlcd "Interface ${1}" "doesn't exist." 72 73 echo_warning 73 74 fi 74 75 else … … 86 87 if [ -n "${link_status}" ]; then 87 88 if echo "${link_status}" | grep -q UP; then 88 89 boot_mesg "Bringing down the ${1} interface..." 90 putlcd "Bringing down" "${1} interface" 89 91 ip link set ${1} down 90 92 evaluate_retval 91 93 fi -
lfs/sysconfig/network-devices/ifup
diff -Naur bootscripts.orig/lfs/sysconfig/network-devices/ifup bootscripts/lfs/sysconfig/network-devices/ifup
old new 31 31 fi 32 32 33 33 boot_mesg "Bringing up the ${1} interface..." 34 putlcd "Bringing up" "${1} interface" 34 35 boot_mesg_flush 35 36 36 37 # Process each configruation file … … 71 72 fi 72 73 else 73 74 boot_mesg "Interface ${1} doesn't exist." ${WARNING} 75 putlcd "Interface ${1}" "doesn't exist." 74 76 echo_warning 75 77 continue 76 78 fi -
lfs/sysconfig/network-devices/services/ipv4-static
diff -Naur bootscripts.orig/lfs/sysconfig/network-devices/services/ipv4-static bootscripts/lfs/sysconfig/network-devices/services/ipv4-static
old new 50 50 case "${2}" in 51 51 up) 52 52 boot_mesg "Adding IPv4 address ${IP} to the ${1} interface..." 53 putlcd "Setting" "${1} IP - ${IP}" 53 54 ip addr add ${args} dev ${1} 54 55 evaluate_retval 55 56 … … 59 60 echo_warning 60 61 else 61 62 boot_mesg "Setting up default gateway..." 63 putlcd "Setting up" "default gateway" 62 64 ip route add default via ${GATEWAY} dev ${1} 63 65 evaluate_retval 64 66 fi … … 68 70 down) 69 71 if [ -n "${GATEWAY}" ]; then 70 72 boot_mesg "Removing default gateway..." 73 putlcd "Removing" "default gateway" 71 74 ip route del default 72 75 evaluate_retval 73 76 fi 74 77 75 78 boot_mesg "Removing IPv4 address ${IP} from the ${1} interface..." 79 putlcd "Unsetting" "${1} IP - ${IP}" 76 80 ip addr del ${args} dev ${1} 77 81 evaluate_retval 78 82 ;; -
lfs/sysconfig/network-devices/services/ipv4-static-route
diff -Naur bootscripts.orig/lfs/sysconfig/network-devices/services/ipv4-static-route bootscripts/lfs/sysconfig/network-devices/services/ipv4-static-route
old new 74 74 case "${2}" in 75 75 up) 76 76 boot_mesg "Adding '${desc}' route to the ${1} interface..." 77 putlcd "Adding route" "${desc}" 77 78 ip route add ${args} dev ${1} 78 79 evaluate_retval 79 80 ;; 80 81 81 82 down) 82 83 boot_mesg "Removing '${desc}' route from the ${1} interface..." 84 putlcd "Removing route" "${desc}" 83 85 ip route del ${args} dev ${1} 84 86 evaluate_retval 85 87 ;;
Note:
See TracBrowser
for help on using the repository browser.