summaryrefslogtreecommitdiff
path: root/base-files
diff options
context:
space:
mode:
authorBruno Randolf <br1@subnet.at>2004-10-21 14:39:20 +0000
committerBruno Randolf <br1@subnet.at>2004-10-21 14:39:20 +0000
commitd6c92ced6d285a67503f8a0787c892b7e5d4e835 (patch)
treea998e97d5e37b4e53e033ff7cc24427664b016d9 /base-files
parent2519a2005d638dbeec85f91b741122a0558b3f34 (diff)
base-files: fixed populate-var.sh, added lastlog, added nylon specifics
BKrev: 4177ca18y6oAcrRSURwoIk8jPj_aFg
Diffstat (limited to 'base-files')
-rw-r--r--base-files/base-files/mtx-1/profile0
-rw-r--r--base-files/base-files_3.0.14.oe23
2 files changed, 15 insertions, 8 deletions
diff --git a/base-files/base-files/mtx-1/profile b/base-files/base-files/mtx-1/profile
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/base-files/base-files/mtx-1/profile
diff --git a/base-files/base-files_3.0.14.oe b/base-files/base-files_3.0.14.oe
index 55cee47574..5ca5958053 100644
--- a/base-files/base-files_3.0.14.oe
+++ b/base-files/base-files_3.0.14.oe
@@ -82,29 +82,30 @@ do_install () {
if (grep -q "^\(tmpfs\|ramfs\)\W\+/var" ${D}/etc/fstab); then
# /var is in a ramdisk
install -d ${D}/etc/init.d ${D}/etc/rcS.d
- for d in ${dirs775}; do
+ for d in ${dirs755}; do
if (echo $d|grep -q "^${localstatedir}"); then
- echo "mkdir -p $d" > ${D}/etc/init.d/populate-var.sh
- echo "chmod 0775 $d" > ${D}/etc/init.d/populate-var.sh
+ echo "mkdir -p $d" >> ${D}/etc/init.d/populate-var.sh
+ echo "chmod 0775 $d" >> ${D}/etc/init.d/populate-var.sh
fi
done
for d in ${dirs1777}; do
if (echo $d|grep -q "^${localstatedir}"); then
- echo "mkdir -p $d" > ${D}/etc/init.d/populate-var.sh
- echo "chmod 1777 $d" > ${D}/etc/init.d/populate-var.sh
+ echo "mkdir -p $d" >> ${D}/etc/init.d/populate-var.sh
+ echo "chmod 1777 $d" >> ${D}/etc/init.d/populate-var.sh
fi
done
for d in ${dirs2775}; do
if (echo $d|grep -q "^${localstatedir}"); then
- echo "mkdir -p $d" > ${D}/etc/init.d/populate-var.sh
- echo "chmod 2775 $d" > ${D}/etc/init.d/populate-var.sh
+ echo "mkdir -p $d" >> ${D}/etc/init.d/populate-var.sh
+ echo "chmod 2775 $d" >> ${D}/etc/init.d/populate-var.sh
fi
done
echo ">/var/run/utmp" >> ${D}/etc/init.d/populate-var.sh
echo ">/var/log/wtmp" >> ${D}/etc/init.d/populate-var.sh
- echo "chmod 0664 /var/run/utmp /var/log/wtmp" >> ${D}/etc/init.d/populate-var.sh
+ echo ">/var/log/lastlog" >> ${D}/etc/init.d/populate-var.sh
+ echo "chmod 0664 /var/run/utmp /var/log/wtmp /var/log/lastlog" >> ${D}/etc/init.d/populate-var.sh
# rmdir ${D}/var/*
chmod 0755 ${D}/${sysconfdir}/init.d/populate-var.sh
@@ -122,6 +123,12 @@ do_install_append_ramses () {
ln -s var/tmp ${D}/tmp
}
+do_install_append_nylon() {
+ rm ${D}/${sysconfdir}/resolv.conf
+ touch ${D}/${sysconfdir}/resolv.conf
+ rm -r ${D}/mnt/*
+}
+
PACKAGES = "${PN}-doc ${PN}"
FILES_${PN} = "/"
FILES_${PN}-doc = "${docdir} ${datadir}/common-licenses"