Direktori : /proc/self/root/proc/thread-self/root/opt/maint/bin/ |
Current File : //proc/self/root/proc/thread-self/root/opt/maint/bin/toggle_log_blackout.sh |
#!/bin/bash if [ "$1" = "--enable" ] then sed -i 's/BLACKHOURS=.*$/BLACKHOURS=8,9,10,11,12,13,14,15,16,17,18/' /etc/stats.conf elif [ "$1" = "--disable" ] then sed -i 's/BLACKHOURS=.*$/BLACKHOURS=/' /etc/stats.conf else echo "Usage: $0 [--enable|--disable]" fi