Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions build/sd_payload/wifi/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@ if [ ! -f /var/tmp/sd/backup/mtdblock0.bin ]; then
kill_cloud
fi

# Make /etc writable (so we can set a root password)
fetc=/var/tmp/sd/etc
mkdir -p ${fetc}
cp -r /etc/* ${fetc}/
mount --bind ${fetc} /etc
# FAT32 does not support logical links
for f in cron dnrd ppp
do
touch /etc/${f}
done
# You probably want to change this file content with your own resolvers
cp -f /var/nm/resolv.conf /etc/
# Now copy our own etc/ data
cp -rf ${fetc}/own/* ${fetc}/

# Fork our script to run in the background
/var/tmp/sd/wifi/fork_process.sh 2>&1 &
kill_cloud
Expand Down