summaryrefslogtreecommitdiff
path: root/base-files
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-08-14 13:37:06 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-08-14 13:37:06 +0000
commit29c3e80f02a590bcb5eb1f616c4988292617bad4 (patch)
treeaf14ac9dfb1eb0637f1e40d3fbda3dad2a2dc77f /base-files
parentc00da0858de61ce911c4a4e0a893e518a3ba46ee (diff)
base-files: create /var/run/utmp and /var/log/wtmp in populate-var.
this fixes the cannot BKrev: 411e1582mThXcSlAm-3xQ5PfoE6O3Q
Diffstat (limited to 'base-files')
-rw-r--r--base-files/base-files_3.0.14.oe23
1 files changed, 15 insertions, 8 deletions
diff --git a/base-files/base-files_3.0.14.oe b/base-files/base-files_3.0.14.oe
index 6e5a2b85e3..eee12f14e9 100644
--- a/base-files/base-files_3.0.14.oe
+++ b/base-files/base-files_3.0.14.oe
@@ -1,7 +1,7 @@
DESCRIPTION = "Miscellaneous files for the base system."
SECTION = "base"
PRIORITY = "required"
-PR = "r11"
+PR = "r12"
SRC_URI = " \
file://etc/nsswitch.conf \
@@ -102,13 +102,20 @@ do_install () {
# /var is in a ramdisk
install -d ${D}/etc/init.d ${D}/etc/rcS.d
echo "#!/bin/sh" >> ${D}/etc/init.d/populate-var
- for d in `(cd ${D}/var; ls)`; do
- mode=`stat -c %a ${D}/var/$d`
- echo "mkdir -p /var/$d" >> ${D}/etc/init.d/populate-var
- echo "chmod $mode /var/$d" >> ${D}/etc/init.d/populate-var
- done
- echo "mkdir -p /var/lock/subsys" >> ${D}/etc/init.d/populate-var
- echo "chmod 755 /var/lock/subsys" >> ${D}/etc/init.d/populate-var
+
+ for d in `(cd ${D}/var; ls)`; do
+ mode=`stat -c %a ${D}/var/$d`
+ echo "mkdir -p /var/$d" >> ${D}/etc/init.d/populate-var
+ echo "chmod $mode /var/$d" >> ${D}/etc/init.d/populate-var
+ done
+
+ echo "mkdir -p /var/lock/subsys" >> ${D}/etc/init.d/populate-var
+ echo "chmod 755 /var/lock/subsys" >> ${D}/etc/init.d/populate-var
+ echo "> /var/run/utmp" >> ${D}/etc/init.d/populate-var
+ echo "touch /var/log/wtmp" >> ${D}/etc/init.d/populate-var
+ echo "chmod 0664 /var/run/utmp /var/log/wtmp" >> ${D}/etc/init.d/populate-var
+ echo "rm -f /var/run/utmpx" >> ${D}/etc/init.d/populate-var
+
rmdir ${D}/var/*
chmod a+x ${D}/etc/init.d/populate-var
ln -s ../init.d/populate-var ${D}/etc/rcS.d/S37populate-var