Skip to content

Commit

Permalink
minor restructuring of postinst
Browse files Browse the repository at this point in the history
  • Loading branch information
cr committed Jan 31, 2011
1 parent d698668 commit fcbd5c1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/control/postinst
Expand Up @@ -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
Expand All @@ -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."
Expand Down

0 comments on commit fcbd5c1

Please sign in to comment.