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
|
||||
/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] }}"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue