|
Last change
on this file since 10586 was 10586, checked in by rick, 14 years ago |
|
Little quirk of removing the static default route set by dhclient if the node
is running in iLeiden configuration.
Related-To: nodefactory#129
|
-
Property svn:executable
set to
*
|
|
File size:
483 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh -
|
|---|
| 2 | #
|
|---|
| 3 | # An normal proxy should not have an defaultrouter configured, as all calls to
|
|---|
| 4 | # the outside world are handled via PF redirects.
|
|---|
| 5 | #
|
|---|
| 6 | # Rick van der Zwet <rick@wirelessleiden.nl>
|
|---|
| 7 |
|
|---|
| 8 | . /etc/rc.subr
|
|---|
| 9 |
|
|---|
| 10 | : ${service_proxy="NO"}
|
|---|
| 11 | : ${service_ileiden="NO"}
|
|---|
| 12 |
|
|---|
| 13 | load_rc_config 'ileiden'
|
|---|
| 14 |
|
|---|
| 15 | if checkyesno "service_proxy_normal" && checkyesno "service_accesspoint"; then
|
|---|
| 16 | warn "Removing default route as machine is marked as service_proxy AND service_accesspoint"
|
|---|
| 17 | route -q del default
|
|---|
| 18 | fi
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.