aboutsummaryrefslogtreecommitdiffstats
path: root/packages/torouter-prep/src
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-09-27 23:30:57 +0200
committerficus <ficus@robocracy.org>2012-09-27 23:37:17 +0200
commit7dcf9aa0db8585eb3489bcf0903e67bdd9dee027 (patch)
tree6e0bf8d25509c9f4fa19d3ac67551489341002a6 /packages/torouter-prep/src
parentd46a7182171c76330448166956344d18755cd8cc (diff)
downloadtorouter-7dcf9aa0db8585eb3489bcf0903e67bdd9dee027.tar.gz
torouter-7dcf9aa0db8585eb3489bcf0903e67bdd9dee027.zip
new dnsmasq schemesept28img
Diffstat (limited to 'packages/torouter-prep/src')
-rwxr-xr-xpackages/torouter-prep/src/torouter_preboot.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/torouter-prep/src/torouter_preboot.sh b/packages/torouter-prep/src/torouter_preboot.sh
index 18703a5..70c08aa 100755
--- a/packages/torouter-prep/src/torouter_preboot.sh
+++ b/packages/torouter-prep/src/torouter_preboot.sh
@@ -34,10 +34,13 @@ install -o root -g root -m 600 $config_dir/etc/network/interfaces /etc/network/i
# Configure dnsmasq
install -o root -g root -m 600 $config_dir/etc/dnsmasq.conf /etc/dnsmasq.conf
-mkdir -p /etc/dnsmasq.d
-chown root:root /etc/dnsmasq.d
-install -o root -g root -m 600 $config_dir/etc/dnsmasq.d/lan /etc/dnsmasq.d/lan
-install -o root -g root -m 600 $config_dir/etc/dnsmasq.d/wifi /etc/dnsmasq.d/wifi
+install -o root -g root -m 600 $config_dir/etc/dnsmasq_lan.conf /etc/dnsmasq_lan.conf
+install -o root -g root -m 600 $config_dir/etc/dnsmasq_wifi.conf /etc/dnsmasq_wifi.conf
+
+# new dns scheme
+install -o root -g root -m 600 $config_dir/etc/default/dnsmasq /etc/default/dnsmasq
+install -o root -g root -m 750 $config_dir/etc/init.d/dnsmasq_lan /etc/init.d/dnsmasq_lan
+install -o root -g root -m 750 $config_dir/etc/init.d/dnsmasq_wifi /etc/init.d/dnsmasq_wifi
# Configure ntp
install -o root -g root -m 600 $config_dir/etc/ntp.conf /etc/ntp.conf