From b74c735177d6a92f09b32f26948c9d3c0226b642 Mon Sep 17 00:00:00 2001 From: ficus Date: Fri, 23 Nov 2012 20:14:49 +0100 Subject: restart torouterui when eth1 comes up (just in case) --- config/includes.chroot/etc/network/interfaces | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/includes.chroot/etc/network/interfaces b/config/includes.chroot/etc/network/interfaces index 3c8db85..9e418ca 100644 --- a/config/includes.chroot/etc/network/interfaces +++ b/config/includes.chroot/etc/network/interfaces @@ -12,13 +12,14 @@ iface eth0 inet dhcp post-down ifdown uap0 # The LAN network interface (not tor-ified) -allow-hotplug eth1 +auto eth1 iface eth1 inet static address 10.23.42.1 netmask 255.255.255.0 network 10.23.42.0 broadcast 10.23.42.255 pre-up ip addr del 10.23.42.1/24 dev eth1 || true + post-up /etc/init.d/torouterui start post-up /etc/init.d/dnsmasq_lan start # this must happen after have brought up uap0 because it clears the NAT # tables -- cgit v1.2.3