Custom Commands - in /etc/config/luci
config command
option name 'schnapps list'
option command 'schnapps list'
Souhrn
config command
option name 'schnapps create'
option command 'schnapps create'
option param '1'
config command
option command ' check_connection'
option name 'Connection test'
config command
option name 'netstat samba'
option command 'netstat -tapn | grep smbd'
config command
option name 'netstat tapn'
option command 'netstat tapn'
config command
option name 'netstat internet'
option command 'netstat -t'
config command
option command 'chmod 777 -R /srv/share'
option name 'práva zápisu'
config command
option command 'lsblk -fs'
option name 'disks'
config command
option command 'lsblk -l'
option name 'disks detailed'
config command
option command 'thermometer'
option name 'Temparature'
config command
option name 'AdBlock status'
option command '/etc/init.d/adblock status'
config command
option name 'AdBlock reload'
option command '/etc/init.d/adblock reload'
config command
option name 'wifi on'
option command 'wifi on'
config command
option name 'Haas proxy restart'
option command '/etc/init.d/haas-proxy restart'
config command
option name 'Foris restart'
option command '/etc/init.d/foris-controller restart'
config command
option name 'Suricata restart'
option command '/etc/init.d/suricata-pakon restart '
config command
option name 'Pakon restart'
option command '/etc/init.d/pakon-monitor restart'
config command
option name 'syslog grep warn'
option command 'bash -c '\''cat /var/log/messages |grep warning'\'''
config command
option name 'syslog grep error'
option command 'bash -c '\''cat /var/log/messages |grep " err "'\'''
config command
option name 'Start resolver debugging'
option command '/etc/resolver/resolver-debug.sh start'
config command
option name 'Stop resolver debugging'
option command '/etc/resolver/resolver-debug.sh stop'
config command
option name 'Print debug log'
option command '/etc/resolver/resolver-debug.sh print-logs'
config command
option name 'Installed packages'
option command 'opkg list-installed'
config command
option command 'iperf -c 192.168.2.110 -t 10'
option name 'Speed throughput'
config command
option name 'Debug netmetr'
option command 'netmetr --debug'
config command
option command ' bash -c `du -sxh /*`'
option name 'Folder size'
config command
option command ' bash -c `du -sxh /tmp/*`'
option name 'Folder size in /tmp/'
config command
option command 'crypto-wrapper serial-number'
option name 'SubstDiag 1 - Serial number'
config command
option command 'cat /var/log/messages'
option name 'SubstDiag 2 - log'
config command
option command 'dmesg'
option name 'SubstDiag 3 - dmesg'
config command
option command 'opkg list-installed'
option name 'SubstDiag 4 - installated'
config command
option command 'cat /etc/config/network'
option name 'SubstDiag 5 - network'
config command
option name 'Diagnostiky'
option command ' bash -c /usr/share/diagnostics/diagnostics.sh -o /tmp/diagnostics.txt && gzip /tmp/diagnostics.txt'
config command
option command 'smartctl -t short /dev/sda'
option name 'SMART short test 2 min'
config command
option command ' smartctl -l selftest /dev/sda'
option name 'SMART part listing'
config command
option name 'SMART long test 120 min'
option command ' smartctl -t long /dev/sda'
config command
option command 'smartctl -H /dev/sda'
option name 'SMART overall health'
config command
option name 'SMART listing'
option command ' smartctl --all /dev/sda'
config command
option name 'Entropie'
option command 'cat /proc/sys/kernel/random/entropy_avail'
Local startup in Luci
/etc/init.d/led_autoconfig disable
exit 0
Scheduled Tasks in Luci
# preventive service restarts
03 */8 * * * /etc/init.d/suricata-pakon restart
07 */8 * * * /etc/init.d/pakon-monitor restart
09 */8* * * /etc/init.d/adblock reload
17 */8 * * * /etc/init.d/haas-proxy restart
#
# preventive restart of the router in order to delete the folder /tmp/ once a week on Sunday at 23:04
04 23 * * 0 reboot >/dev/null 2>&1
#
# LOGGING DHCP errors in log recovery cycle once a day
# 31 23 * * /etc/resolver/resolver-debug.sh stop
# 33 23 * * * /etc/resolver/resolver-debug.sh start