]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/boot.d/16-cleanwtmputmp
HinzugefĆ¼gt:
[people/pmueller/ipfire-2.x.git] / src / boot.d / 16-cleanwtmputmp
diff --git a/src/boot.d/16-cleanwtmputmp b/src/boot.d/16-cleanwtmputmp
new file mode 100644 (file)
index 0000000..b89a82e
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Cleaning up wtmp/utmp files
+>/var/run/utmp
+touch /var/log/wtmp
+chgrp utmp /var/run/utmp /var/log/wtmp
+chmod 0664 /var/run/utmp /var/log/wtmp