Changeset ad29fe9 in bootscripts-standard for cblfs/sysconfig/network-devices/services
- Timestamp:
- Feb 3, 2009, 12:23:22 PM (16 years ago)
- Branches:
- master
- Children:
- 04bc108
- Parents:
- a3d8ed8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cblfs/sysconfig/network-devices/services/dhcpcd
ra3d8ed8 rad29fe9 6 6 # Adapted for dhcpcd by DJ Lucas <dj@lucasit.com> 7 7 8 #$LastChangedBy$9 #$Date$10 11 8 . /etc/sysconfig/rc 12 9 . $rc_functions … … 14 11 15 12 pidfile="/var/run/dhcpcd-$1.pid" 16 leaseinfo="/var/lib/dhcpcd/dhcpcd-$1.info"17 13 18 14 case "$2" in 19 15 up) 20 boot_mesg -n "Starting dhcpcdon the $1 interface..."16 boot_mesg -n "Starting DHCPCD on the $1 interface..." 21 17 # Test to see if there is a stale pid file 22 18 if [ -f "$pidfile" ]; then … … 33 29 # Save the return value 34 30 RET="$?" 35 # Print the assigned settings if requested 36 if [ "$RET" = "0" -a "$PRINTIP" = "yes" ]; then 37 . $leaseinfo 38 if [ "$PRINTALL" = "yes" ]; then 39 echo "" 40 echo_ok 41 boot_mesg " DHCP Assigned Settings for $1:" 42 boot_mesg_flush 43 boot_mesg " IP Address: $IPADDR" 44 boot_mesg_flush 45 boot_mesg " Subnet Mask: $NETMASK" 46 boot_mesg_flush 47 boot_mesg " Default Gateway: $GATEWAYS" 48 boot_mesg_flush 49 boot_mesg " DNS Server: $DNSSERVERS" 50 boot_mesg_flush 51 else 52 boot_mesg " IP Addresss: $IPADDR" 53 echo_ok 54 fi 55 else 56 echo "" 57 $(exit "$RET") 58 evaluate_retval 59 fi 31 echo "" 32 $(exit "$RET") 33 evaluate_retval 60 34 ;; 61 35 62 36 down) 63 boot_mesg -n "Stopping dhcpcdon the $1 interface..."37 boot_mesg -n "Stopping DHCPCD on the $1 interface..." 64 38 if [ -z "$DHCP_STOP" ]; then 65 39 echo "" … … 88 62 89 63 # End $network_devices/services/dhcpcd 90
Note:
See TracChangeset
for help on using the changeset viewer.