Annotation of badi/public_scripts/switchgate/dhclient-exit-hooks.d/switchgate-helper, revision 1.2
1.1 adi 1:
2: # dhclient-exit-hook: switchgate-helper
3:
4: RUN="yes"
5:
6:
7: if [ "$RUN" = "yes" ]; then
8:
9: SWITCHGATE_CONFDIR=$(/usr/local/sbin/switchgate -C)
10:
11: if [ ! -d $SWITCHGATE_CONFDIR ]; then
12: mkdir "$SWITCHGATE_CONFDIR"
13: fi
14:
1.2 ! adi 15: echo "Adding DHCP supplied gateways to the list of gateways for switchgate."
! 16:
1.1 adi 17: # Register switchgate routers
18: echo "$new_routers" | sed -e "s/ /\n/g" > "$SWITCHGATE_CONFDIR"/dhcp.$interface
19: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>