Update hostapps.sh

This commit is contained in:
Pascal Vizeli 2018-04-15 11:57:10 +02:00 committed by GitHub
parent 36e34607d0
commit d69d7ce009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,2 +1,14 @@
#!/bin/bash #!/bin/bash
set -e set -e
DATA_IMG="/export/data.img"
# Make image
dd if=/dev/zero of=${DATA_IMG} bs=1M count=1024
mkfs.ext4 -E lazy_itable_init=0,lazy_journal_init=0 -i 8192 ${DATA_IMG}
# Mount / init file structs
mount -o loop ${DATA_IMG} /mnt
mkdir -p /mnt/docker
mkdir -p /mnt/supervisor
mkdir -p /mnt/cli