-ifcfg=/etc/sysconfig/network-scripts/ifcfg-$ETH_DEVICE
-echo "DEVICE=$ETH_DEVICE" > $ifcfg
-[ -n "$NET_DEVICE" ] && \
- echo "HWADDR=$NET_DEVICE" >> $ifcfg
-echo "BOOTPROTO=$IP_METHOD" >> $ifcfg
-echo "DHCP_HOSTNAME=$HOST_NAME.$DOMAIN_NAME" >> $ifcfg
-
-if [ -n "$WLAN_SSID$WLAN_IWCONFIG$WLAN_MODE" ]; then
- [ -n "$WLAN_SSID" ] && \
- echo "ESSID=$WLAN_SSID" >> $ifcfg
- [ -n "$WLAN_IWCONFIG" ] && \
- echo "IWCONFIG=$WLAN_IWCONFIG" >> $ifcfg
- [ -n "$WLAN_MODE" ] && \
- echo "MODE=$WLAN_MODE" >> $ifcfg
-fi
-
-if [ "$IP_METHOD" = "static" ]; then
- echo "IPADDR=$IP_ADDRESS" >> $ifcfg
- echo "NETMASK=$IP_NETMASK" >> $ifcfg
- echo "GATEWAY=$IP_GATEWAY" >> $ifcfg
-
- /bin/hostname "$HOST_NAME.$DOMAIN_NAME"
-
- if [[ -z "$IP_DNS1" ]]; then
- echo $(date "+%H:%M:%S") " pl_netinit: no dns server specified, cannot continue."
- net_init_failed
- fi
-
- echo "nameserver $IP_DNS1" > /etc/resolv.conf
- if [[ -n "$IP_DNS2" ]]; then
- echo "nameserver $IP_DNS2" >> /etc/resolv.conf
- fi
-fi
-
-
-echo $(date "+%H:%M:%S") " pl_netinit: attempting to bring up device $ETH_DEVICE"
-/sbin/ifup $ETH_DEVICE