]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
initscripts: Add scripts to create utmp user and some logfiles.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 17 Oct 2011 11:52:05 +0000 (13:52 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 17 Oct 2011 11:52:05 +0000 (13:52 +0200)
initscripts/initscripts.nm

index 44ed337c9494fcc8121149c7213dbbd946d450a0..dce2238b4ec76914fc8cb021cbafdff4471e76b2 100644 (file)
@@ -6,7 +6,7 @@
 name       = initscripts
 epoch      = 1
 version    = 2.99
-release    = 7
+release    = 8
 
 groups     = Base System/Boot
 url        =
@@ -76,5 +76,18 @@ packages
                        udev
                        util-linux
                end
+
+               prerequires = coreutils shadow-utils
+
+               script prein
+                       groupadd -g 22 -r -f utmp
+               end
+
+               script postin
+                       touch /var/log/{b,w}tmp /var/run/utmp
+                       chown root:utmp /var/log/{b,w}tmp /var/run/utmp
+                       chmod 664 /var/log/wtmp /var/run/utmp
+                       chmod 600 /var/log/btmp
+               end
        end
 end