cpe: script fixes
This commit is contained in:
parent
aca557a875
commit
d05eedc42c
|
@ -353,12 +353,11 @@ __SH__
|
||||||
chmod a+rx /usr/sbin/wifi-on-link.sh
|
chmod a+rx /usr/sbin/wifi-on-link.sh
|
||||||
/etc/init.d/cron restart
|
/etc/init.d/cron restart
|
||||||
|
|
||||||
# TODO: install pkgs (collectd...)
|
|
||||||
|
|
||||||
{%- if conf.get('firstboot') %}
|
{%- if conf.get('firstboot') %}
|
||||||
reboot
|
reboot
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
__SSH__
|
__SSH__
|
||||||
|
|
||||||
echo "All done \\o/"
|
echo "Base configuration done \\o/"
|
||||||
|
echo "Later run: `dirname $0`/ap_install_collectd.sh {{ pillar['hosts-inet']['mgmt'][hostname] }}"
|
||||||
|
|
|
@ -6,7 +6,7 @@ for HOST in $@ ; do
|
||||||
opkg update
|
opkg update
|
||||||
opkg install collectd collectd-mod-iwinfo collectd-mod-network
|
opkg install collectd collectd-mod-iwinfo collectd-mod-network
|
||||||
cat > /etc/collectd.conf <<EOF
|
cat > /etc/collectd.conf <<EOF
|
||||||
Hostname "$HOSTNAME"
|
Hostname "\$HOSTNAME"
|
||||||
FQDNLookup false
|
FQDNLookup false
|
||||||
Interval 10
|
Interval 10
|
||||||
|
|
||||||
|
@ -25,8 +25,8 @@ LoadPlugin network
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
/etc/init.d/collectd restart
|
||||||
/etc/init.d/collectd enable
|
/etc/init.d/collectd enable
|
||||||
/etc/init.d/collectd start
|
|
||||||
|
|
||||||
__SSH__
|
__SSH__
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue