Added creating of /config to post-build.sh

git doesn't like empty subdirectories
This commit is contained in:
mvoelkel 2015-09-05 18:39:08 +02:00
parent 141a04fe7a
commit 72d183c3e6
1 changed files with 5 additions and 0 deletions

View File

@ -3,3 +3,8 @@ TARGETDIR=$1
grep -q config $TARGETDIR/etc/fstab || echo -e "/dev/ubi0_0\t\t/config\tubifs\tdefaults\t0\t0" >> $TARGETDIR/etc/fstab
grep -q pts $TARGETDIR/etc/securetty || echo -e "pts/0\npts/1\npts/2\npts/3" >> $TARGETDIR/etc/securetty
mkdir -p $TARGETDIR/config
grep -q admin $TARGETDIR/etc/passwd || echo -e "admin:x:200:200:nobody:/home:/bin/false" >> $TARGETDIR/etc/passwd
grep -q admin $TARGETDIR/etc/shadow || echo -e "admin:WiBKbsJTSQ8dc:13514:0:99999:7:::" >> $TARGETDIR/etc/shadow