cpe: script fixes

This commit is contained in:
Astro 2017-02-07 02:36:15 +01:00
parent aca557a875
commit d05eedc42c
2 changed files with 4 additions and 5 deletions

View File

@ -353,12 +353,11 @@ __SH__
chmod a+rx /usr/sbin/wifi-on-link.sh
/etc/init.d/cron restart
# TODO: install pkgs (collectd...)
{%- if conf.get('firstboot') %}
reboot
{%- endif %}
__SSH__
echo "All done \\o/"
echo "Base configuration done \\o/"
echo "Later run: `dirname $0`/ap_install_collectd.sh {{ pillar['hosts-inet']['mgmt'][hostname] }}"

View File

@ -6,7 +6,7 @@ for HOST in $@ ; do
opkg update
opkg install collectd collectd-mod-iwinfo collectd-mod-network
cat > /etc/collectd.conf <<EOF
Hostname "$HOSTNAME"
Hostname "\$HOSTNAME"
FQDNLookup false
Interval 10
@ -25,8 +25,8 @@ LoadPlugin network
EOF
/etc/init.d/collectd restart
/etc/init.d/collectd enable
/etc/init.d/collectd start
__SSH__
done