Skip to content

Commit

Permalink
Let bubba-restore-defaults.sh enable basic services in default runlevel
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonb3 committed May 25, 2016
1 parent e0dc901 commit 1d66d27
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions sbin/bubba-restore-defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,27 @@ for nic in "eth0" "eth1"; do
fi
done
rm /etc/runlevels/default/net.* 2>/dev/null
rc-update add net.eth0
rc-update add net.eth1
rc-update add net.eth0 default
rc-update add net.eth1 default
cd - >/dev/null

# Services config
echo "Enable basic services"
cd /etc/runlevels/default
rm apache2 bootled bubba-adminphp bubba-buttond bubba-firewall dnsmasq haveged ntpd samba sshd iptables shorewall 2>/dev/null
rc-update add apache2 default
rc-update add bubba-adminphp default
rc-update add bubba-buttond default
rc-update add bubba-firewall default
rc-update add dnsmasq default
rc-update add haveged default
rc-update add ntpd default
rc-update add samba default
rc-update add sshd default
cd - >/dev/null



echo ""
echo 'All done! Please reboot to activate the new settings.'
echo "Then visit http://$(hostname)/admin to get started with Bubbagen."
Expand Down

0 comments on commit 1d66d27

Please sign in to comment.