#!/bin/bash

# This is the script to run

# echo "config \\" ; for val in {dialin,dialout,lan,vpn,wan,wlan}; do echo "-d config.$val.services \\" ; config -g config.$val.services | sed -e 's/ /=\'\''/' -e 's/$/'\'' \\/' -e 's/^/-s /'; done; echo "-a"


config \
-d config.dialin.services \
-s config.dialin.services.dns.enabled='on' \
-s config.dialin.services.ftp.enabled='on' \
-s config.dialin.services.https.enabled='on' \
-s config.dialin.services.modified='true' \
-s config.dialin.services.nagios_nrpe.enabled='on' \
-s config.dialin.services.ntp.enabled='on' \
-s config.dialin.services.nut.enabled='on' \
-s config.dialin.services.ping.enabled='on' \
-s config.dialin.services.rfc2217_ports.enabled='on' \
-s config.dialin.services.snmp.enabled='on' \
-s config.dialin.services.ssh.enabled='on' \
-s config.dialin.services.ssh_ports.enabled='on' \
-s config.dialin.services.tcp_ports.enabled='on' \
-s config.dialin.services.telnet_ports.enabled='on' \
-s config.dialin.services.tftp.enabled='on' \
-s config.dialin.services.unauthssh.enabled='on' \
-s config.dialin.services.unauthtel.enabled='on' \
-d config.dialout.services \
-s config.dialout.services.https.enabled='on' \
-s config.dialout.services.modified='true' \
-s config.dialout.services.ping.enabled='on' \
-s config.dialout.services.ssh.enabled='on' \
-s config.dialout.services.ssh_ports.enabled='on' \
-d config.lan.services \
-s config.lan.services.dns.enabled='on' \
-s config.lan.services.ftp.enabled='on' \
-s config.lan.services.https.enabled='on' \
-s config.lan.services.lldp.enabled='on' \
-s config.lan.services.modified='true' \
-s config.lan.services.nagios_nrpe.enabled='on' \
-s config.lan.services.ntp.enabled='on' \
-s config.lan.services.nut.enabled='on' \
-s config.lan.services.ping.enabled='on' \
-s config.lan.services.rfc2217_ports.enabled='on' \
-s config.lan.services.snmp.enabled='on' \
-s config.lan.services.ssh.enabled='on' \
-s config.lan.services.ssh_ports.enabled='on' \
-s config.lan.services.tcp_ports.enabled='on' \
-s config.lan.services.telnet_ports.enabled='on' \
-s config.lan.services.tftp.enabled='on' \
-s config.lan.services.unauthssh.enabled='on' \
-s config.lan.services.unauthtel.enabled='on' \
-d config.vpn.services \
-s config.vpn.services.dns.enabled='on' \
-s config.vpn.services.ftp.enabled='on' \
-s config.vpn.services.https.enabled='on' \
-s config.vpn.services.modified='true' \
-s config.vpn.services.nagios_nrpe.enabled='on' \
-s config.vpn.services.ntp.enabled='on' \
-s config.vpn.services.nut.enabled='on' \
-s config.vpn.services.ping.enabled='on' \
-s config.vpn.services.rfc2217_ports.enabled='on' \
-s config.vpn.services.snmp.enabled='on' \
-s config.vpn.services.ssh.enabled='on' \
-s config.vpn.services.ssh_ports.enabled='on' \
-s config.vpn.services.tcp_ports.enabled='on' \
-s config.vpn.services.telnet_ports.enabled='on' \
-s config.vpn.services.tftp.enabled='on' \
-s config.vpn.services.unauthssh.enabled='on' \
-s config.vpn.services.unauthtel.enabled='on' \
-d config.wan.services \
-s config.wan.services.https.enabled='on' \
-s config.wan.services.modified='true' \
-s config.wan.services.ping.enabled='on' \
-s config.wan.services.ssh.enabled='on' \
-d config.wlan.services \
-a

