97-dmesg.sh (162B)
1 dmesg >/var/log/dmesg.log 2 if [ $(sysctl -n kernel.dmesg_restrict 2>/dev/null) -eq 1 ]; then 3 chmod 0600 /var/log/dmesg.log 4 else 5 chmod 0644 /var/log/dmesg.log 6 fi
![]() | fiss-linuxSome linux scripts for fiss |
Log | Files | Refs | LICENSE |