aboutsummaryrefslogtreecommitdiffstats
path: root/config/includes.chroot/etc/network
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-11-23 20:14:49 +0100
committerficus <ficus@robocracy.org>2012-11-23 20:14:49 +0100
commitb74c735177d6a92f09b32f26948c9d3c0226b642 (patch)
treea7bcd22e510dfcd59183c553e18b5326ee9cc785 /config/includes.chroot/etc/network
parentf6df416e105556ca98f996dd573dea08b4c622b0 (diff)
downloadtorouter-live-b74c735177d6a92f09b32f26948c9d3c0226b642.tar.gz
torouter-live-b74c735177d6a92f09b32f26948c9d3c0226b642.zip
restart torouterui when eth1 comes up (just in case)
Diffstat (limited to 'config/includes.chroot/etc/network')
-rw-r--r--config/includes.chroot/etc/network/interfaces3
1 files changed, 2 insertions, 1 deletions
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