Permalink
Browse files

minor restructuring of postinst

  • Loading branch information...
1 parent d698668 commit fcbd5c1197f83d33e89eac0863060c870fe09c08 @cr committed Jan 31, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/control/postinst
View
@@ -14,8 +14,6 @@ then
echo "Next time you log in, you must use ssh."
fi
-# configure USB and network
-/etc/init.d/piratebox setup
# disable web interface, start PirateBox instead
/etc/init.d/uhttpd stop
@@ -26,20 +24,27 @@ fi
/etc/init.d/luci_dhcp_migrate disable
/etc/init.d/piratebox enable
+# configure USB, network
+/etc/init.d/piratebox setup
+
+# prepare USB partition and install PirateBox
/etc/init.d/piratebox init
/etc/init.d/piratebox update
+# activate config changes
/etc/init.d/firewall restart
/etc/init.d/dnsmasq restart
wifi
+# start PirateBox service
/etc/init.d/piratebox start
# give some user feedback
echo
echo "PirateBox wireless SSID: $pb_wireless_ssid"
echo "PirateBox DNS and hostname: $pb_hostname"
echo "PirateBox LAN IP address: $pb_ip"
+echo "PirateBox shared directory: $pd_share"
echo
echo "Setup complete, PirateBox started."
echo "You can remove the WAN connection now."

0 comments on commit fcbd5c1

Please sign in to comment.