unix/fiss-linux

etc/start.d/97-dmesg.sh in master
Repositories | Summary | Log | Files | LICENSE

97-dmesg.sh (162B) download


1dmesg >/var/log/dmesg.log
2if [ $(sysctl -n kernel.dmesg_restrict 2>/dev/null) -eq 1 ]; then
3	chmod 0600 /var/log/dmesg.log
4else
5	chmod 0644 /var/log/dmesg.log
6fi