mirror of
git://projects.qi-hardware.com/nanobits.git
synced 2024-11-23 21:17:10 +02:00
32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
ben-set-up will be the..
|
|
"one script to rule them all and in the nanonote bind them.."
|
|
So, Tolkien referencees aside, this will be the main "Help me
|
|
set-up my NanoNote" script.
|
|
|
|
It will do several things:
|
|
1. run at boot and check a flag file
|
|
if first boot see if user want to restore from backed-up settings
|
|
if not does the user want a default data partition created
|
|
does the user want to mount a uSD card at boot
|
|
Set timezone, set flag file to continue time set up,
|
|
reboot, read flag file run ben-time-set
|
|
to finish setting time (clearly we need a skip the timezone switch)
|
|
if yes to restore, preform necessary tasks to get to restore data
|
|
i.e. mount uSD, ssh/ftp/etc to host
|
|
grab the settings for timezone,and data partitions,
|
|
automounts.
|
|
set those up. Change flag file to continue restore
|
|
reboot. read flag file. continue restore.
|
|
if all goes well set flag file to all done
|
|
|
|
2. if run manually don't check flag file (unless instructed to (flag))
|
|
instead provide a menu with options to:
|
|
set timezone
|
|
set time
|
|
set-up data partition
|
|
set up auto mounts
|
|
back-up system
|
|
restore from backup
|
|
etc
|
|
|