Dieses Wiki ist ein Archiv bis 2023. Das aktuelle Wiki findet sich unter https://wiki.hamburg.ccc.de/
Difference between revisions of "ChaosVPN:Tims NetBSD chaosvpn rc.d"
m |
m (missed a stupid underscore) |
||
Line 9: | Line 9: | ||
# REQUIRE: inetd network LOGIN | # REQUIRE: inetd network LOGIN | ||
− | $ | + | $_rc_subr_loaded . /etc/rc.subr |
name="chaosvpn" | name="chaosvpn" | ||
Line 23: | Line 23: | ||
/usr/pkg/etc/tinc/chaos/tinc-up | /usr/pkg/etc/tinc/chaos/tinc-up | ||
+ | |||
+ | sleep 10 #give things time to get set up | ||
route add 10.100.0.0/16 10.100.44.1 #because the route for 10.100 wasnt being automagically configured | route add 10.100.0.0/16 10.100.44.1 #because the route for 10.100 wasnt being automagically configured |
Revision as of 00:36, 3 August 2013
#!/bin/sh # # $NetBSD: chaosvpn # # PROVIDE: chaosvpn # REQUIRE: inetd network LOGIN $_rc_subr_loaded . /etc/rc.subr name="chaosvpn" start_cmd="chaosvpn_start" stop_cmd=":" chaosvpn_start() { /usr/pkg/sbin/chaosvpn -d sleep 10 #give things time to get set up /usr/pkg/etc/tinc/chaos/tinc-up sleep 10 #give things time to get set up route add 10.100.0.0/16 10.100.44.1 #because the route for 10.100 wasnt being automagically configured route add 172.31.0.0/16 10.100.44.1 #same as above } load_rc_config $name run_rc_command "$1"