diff options
Diffstat (limited to 'base-files/base-files_3.0.14.oe')
-rw-r--r-- | base-files/base-files_3.0.14.oe | 23 |
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 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" |