Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/opt/maint/bin/
Upload File :
Current File : //proc/thread-self/root/proc/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

Zerion Mini Shell 1.0