import from old webserver
This commit is contained in:
commit
ef633b2cf4
182 changed files with 69233 additions and 0 deletions
18
noc/configs/network/if-up.d/ip
Executable file
18
noc/configs/network/if-up.d/ip
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
# This should probably go into ifupdown
|
||||
# But usually only those with lots of interfaces (vlans) need these
|
||||
if [ -d /proc/sys/net/ipv4/conf/$IFACE ]
|
||||
then
|
||||
if [ -n "$IF_IP_PROXY_ARP" ] && [ "$IF_IP_PROXY_ARP" -eq "1" ]
|
||||
then
|
||||
echo 1 > /proc/sys/net/ipv4/conf/$IFACE/proxy_arp
|
||||
else
|
||||
echo 0 > /proc/sys/net/ipv4/conf/$IFACE/proxy_arp
|
||||
fi
|
||||
if [ -n "$IF_IP_RP_FILTER" ] && [ "$IF_IP_RP_FILTER" -eq "0" ]
|
||||
then
|
||||
echo 0 > /proc/sys/net/ipv4/conf/$IFACE/rp_filter
|
||||
else
|
||||
echo 1 > /proc/sys/net/ipv4/conf/$IFACE/rp_filter
|
||||
fi
|
||||
fi
|
10
noc/configs/network/if-up.d/ntp-server
Executable file
10
noc/configs/network/if-up.d/ntp-server
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
# remove (or comment out) the next line if your network addresses change
|
||||
exit 0
|
||||
|
||||
case $IFACE in
|
||||
eth*)
|
||||
/etc/init.d/ntp-server restart
|
||||
;;
|
||||
esac
|
11
noc/configs/network/if-up.d/openvpn
Executable file
11
noc/configs/network/if-up.d/openvpn
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
OPENVPN=/etc/init.d/openvpn
|
||||
|
||||
if [ ! -x $OPENVPN ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -n "$IF_OPENVPN" ]; then
|
||||
$OPENVPN start $IF_OPENVPN
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue