Magellan Linux

Diff of /trunk/initscripts/sysvinit/rc/network

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/magellan-initscripts/etc/rc.d/init.d/network revision 1258 by niro, Fri Mar 11 17:34:34 2011 UTC trunk/initscripts/sysvinit/rc/network revision 1363 by niro, Sat Jun 4 22:00:07 2011 UTC
# Line 12  Line 12 
12    
13  source /etc/conf.d/rc  source /etc/conf.d/rc
14  source ${rc_functions}  source ${rc_functions}
15    source /etc/conf.d/network
16    
17  # read values from files  # read values from files
18  read_value()  read_value()
# Line 96  checkconfig() Line 97  checkconfig()
97   if [[ -z ${NETMASK} ]]   if [[ -z ${NETMASK} ]]
98   then   then
99   rc_echo -n "NETMASK missing in net.${iface}, "   rc_echo -n "NETMASK missing in net.${iface}, "
100   rc_echo "using 255.255.255.0"   rc_echo "using ${DEFAULT_NETMASK}"
101   NETMASK=255.255.255.0   NETMASK="${DEFAULT_NETMASK}"
102   fi   fi
103    
104   if [[ -z ${BROADCAST} ]]   if [[ -z ${BROADCAST} ]]
# Line 111  checkconfig() Line 112  checkconfig()
112   if [[ -z ${DHCP_PROG} ]]   if [[ -z ${DHCP_PROG} ]]
113   then   then
114   rc_echo -n "DHCP_PROG missing in net.${iface},"   rc_echo -n "DHCP_PROG missing in net.${iface},"
115   rc_echo "using default programm /sbin/dhcpcd"   rc_echo "using default programm ${DEFAULT_DHCP_PROG}"
116   DHCP_PROG="/sbin/dhcpcd"   DHCP_PROG="${DEFAULT_DHCP_PROG}"
117   fi   fi
118   [[ -z ${DHCP_START} ]] && DHCP_START="-t 10"   [[ -z ${DHCP_START} ]] && DHCP_START="${DEFAULT_DHCP_START}"
119   [[ -z ${DHCP_STOP} ]] && DHCP_STOP="-k"   [[ -z ${DHCP_STOP} ]] && DHCP_STOP="${DEFAULT_DHCP_STOP}"
120   ;;   ;;
121    
122   esac   esac
# Line 487  networking_start() Line 488  networking_start()
488   ${CURS_UP}   ${CURS_UP}
489   ${SET_WWCOL}   ${SET_WWCOL}
490   rc_echo "[DHCP]"   rc_echo "[DHCP]"
491   loadproc "${DHCP_PROG}" "${DHCP_START}" "${iface}"   loadproc ${DHCP_PROG} ${DHCP_START} "${iface}"
492   ;;   ;;
493   static|STATIC)   static|STATIC)
494   ${CURS_UP}   ${CURS_UP}
# Line 586  networking_stop() Line 587  networking_stop()
587   fi   fi
588    
589   # shutdown dhcp-daemon   # shutdown dhcp-daemon
590   if [[ ${NETWORKING} = dhcp ]] && [[ -n $(pidof ${DHCP_PROG}) ]]   if [[ ${NETWORKING} = dhcp ]] && [[ -n $(pidof $(basename ${DHCP_PROG})) ]]
591   then   then
592   rc_print "Stopping the dhcp-daemon ..."   rc_print "Stopping the dhcp-daemon ..."
593   ${CURS_UP}   ${CURS_UP}

Legend:
Removed from v.1258  
changed lines
  Added in v.1363