base-files: fixed populate-var.sh, added lastlog, added nylon specifics
authorBruno Randolf <br1@subnet.at>
Thu, 21 Oct 2004 14:39:20 +0000 (14:39 +0000)
committerBruno Randolf <br1@subnet.at>
Thu, 21 Oct 2004 14:39:20 +0000 (14:39 +0000)
BKrev: 4177ca18y6oAcrRSURwoIk8jPj_aFg

base-files/base-files/mtx-1/profile [new file with mode: 0644]
base-files/base-files_3.0.14.oe

diff --git a/base-files/base-files/mtx-1/profile b/base-files/base-files/mtx-1/profile
new file mode 100644 (file)
index 0000000..e69de29
index 55cee47..5ca5958 100644 (file)
@@ -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"