summaryrefslogtreecommitdiff
path: root/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'base-files')
-rw-r--r--base-files/base-files_3.0.14.oe5
1 files changed, 2 insertions, 3 deletions
diff --git a/base-files/base-files_3.0.14.oe b/base-files/base-files_3.0.14.oe
index 6f81eea17d..7c31a00500 100644
--- a/base-files/base-files_3.0.14.oe
+++ b/base-files/base-files_3.0.14.oe
@@ -95,9 +95,8 @@ do_install () {
install -d ${D}/etc/init.d ${D}/etc/rcS.d
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.sh
- echo "chmod $mode /var/$d" >> ${D}/etc/init.d/populate-var.sh
+ echo "mkdir -p /var/$d" >> ${D}/etc/init.d/populate-var
+ echo "chmod --reference=${D}/var/$d /var/$d" >> ${D}/etc/init.d/populate-var.sh
done
echo "mkdir -p /var/lock/subsys" >> ${D}/etc/init.d/populate-var.sh