Blame | Last modification | View Log | RSS feed
#!/bin/shcd /etc/sysconfig/network-scripts. ./network-functionsCONFIG=$1source_configif [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ]thenexitfiifconfig ${DEVICE} ${IPADDR} pointopoint ${REMIP}route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE}# this is broken! it's only here to keep compatibility with old RH systemsif [ "${GATEWAY}" != "" -a "${GATEWAY}" != "none" ]thenroute add default gw ${GATEWAY} metric ${METRIC:-1} ${DEVICE}fi. /etc/sysconfig/networkif [ "${GATEWAY}" != "" ]; thenif [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then# set up default gatewayroute add default gw ${GATEWAY} ${METRIC:+metric $METRIC}fifi/etc/sysconfig/network-scripts/ifup-post $1