Changeset 1d02f01 in bootscripts-standard for cblfs/sysconfig
- Timestamp:
- Oct 23, 2007, 1:07:58 AM (17 years ago)
- Branches:
- master
- Children:
- 1680407
- Parents:
- d8a3177
- Location:
- cblfs/sysconfig/network-devices/services
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cblfs/sysconfig/network-devices/services/dhclient
rd8a3177 r1d02f01 16 16 { 17 17 # Print the last 16 lines of dhclient.leases 18 sed -e :a -e '$q;N;17,$D;ba' /var/state/dhcp/ /dhclient.leases18 sed -e :a -e '$q;N;17,$D;ba' /var/state/dhcp/dhclient.leases 19 19 } 20 20 … … 67 67 down) 68 68 boot_mesg "Stoping dhclient on the $1 interface..." 69 if [ "$DHCP_STOP" = "" ] 70 then 69 if [ "$DHCP_STOP" = "" ]; then 71 70 # This breaks multiple interfaces please provide 72 71 # the correct stop arguments. -
cblfs/sysconfig/network-devices/services/dhcpcd
rd8a3177 r1d02f01 6 6 # Adapted for dhcpcd by DJ Lucas <dj@lucasit.com> 7 7 8 #$LastChangedBy : dj$9 #$Date : 2007-08-21 23:09:21 -0500 (Tue, 21 Aug 2007)$8 #$LastChangedBy$ 9 #$Date$ 10 10 11 11 . /etc/sysconfig/rc … … 13 13 . $IFCONFIG 14 14 15 PIDFILE="/var/run/dhcpcd-$1.pid"16 LEASEINFO="/var/lib/dhcpcd/dhcpcd-$1.info"15 pidfile="/var/run/dhcpcd-$1.pid" 16 leaseinfo="/var/lib/dhcpcd/dhcpcd-$1.info" 17 17 18 18 case "$2" in … … 20 20 boot_mesg -n "Starting dhcpcd on the $1 interface..." 21 21 # Test to see if there is a stale pid file 22 if [ -f "$PIDFILE" ] 23 then 24 ps `cat "$PIDFILE"` | grep dhcpcd > /dev/null 25 if [ $? != 0 ] 26 then 27 rm -f $PIDFILE > /dev/null 22 if [ -f "$pidfile" ]; then 23 ps `cat "$pidfile"` | grep dhcpcd > /dev/null 24 if [ $? != 0 ]; then 25 rm -f $pidfile > /dev/null 28 26 else 29 27 boot_mesg "dhcpcd already running!" ${WARNING} … … 37 35 # Print the assigned settings if requested 38 36 if [ "$RET" = "0" -a "$PRINTIP" = "yes" ]; then 39 . $ LEASEINFO37 . $leaseinfo 40 38 if [ "$PRINTALL" = "yes" ]; then 41 39 echo "" … … 64 62 down) 65 63 boot_mesg -n "Stopping dhcpcd on the $1 interface..." 66 if [ -z "$DHCP_STOP" ] 67 then 64 if [ -z "$DHCP_STOP" ]; then 68 65 echo "" 69 killproc -p "$ PIDFILE" /sbin/dhcpcd66 killproc -p "$pidfile" /sbin/dhcpcd 70 67 else 71 68 /sbin/dhcpcd $1 $DHCP_STOP &> /dev/null … … 91 88 92 89 # End $network_devices/services/dhcpcd 90
Note:
See TracChangeset
for help on using the changeset viewer.