9 Commits

Author SHA1 Message Date
Ross Simpson
6e4fe624ec
Fix incorrect config filename in update script
The update script backs up the config file to `/root/config.bak`, but
then tries to restore it from `/root/config.yml.bak` (which obviously
won't be found).

This looks like a typo in the backup command, so update that command to
use the same filename as the restore command.

Signed-off-by: Ross Simpson <ross@rosssimpson.com>
2019-10-04 22:01:44 +10:00
sp3nx0r
540eb69ead resolve conflict, adjust getopts args, add /etc/motd to backup 2019-10-03 06:49:18 -05:00
sp3nx0r
690f59a846 adding /etc/network/interfaces from PR#71 2019-10-02 16:16:43 -05:00
sp3nx0r
66ef818ec8 fixing perms on script and uncommenting line from debugging 2019-10-02 16:11:51 -05:00
sp3nx0r
6d2af37203 fixing getopts, adding host specific files to backup, refactoring 2019-10-02 14:05:22 -05:00
Jeroen Massar
b948627bd5 Fix CRLF line endings...
Before:
```
bash: ./update_pwnagotchi.sh: /bin/bash^M: bad interpreter: No such file or directory
```

Thus:
```
scripts/update_pwnagotchi.sh: Bourne-Again shell script text executable, ASCII text, with CRLF line terminators

dos2unix: converting file scripts/update_pwnagotchi.sh to Unix format...

scripts/update_pwnagotchi.sh: Bourne-Again shell script text executable, ASCII text
```

Now it works :)
2019-10-02 19:03:50 +02:00
Justin-p
bc2bca79b5 updated arguments to getopts. Added -m for restart mode. Moved prerequisites checks. 2019-10-02 10:40:16 +02:00
Justin-p
cd5be9c4cd Add /boot. Redo help. Replaced --commit/--branch with --version. Added --url to easly switch to other fork for testing 2019-10-02 10:14:26 +02:00
Justin-p
a495ffb136 Add update script 2019-10-02 00:29:14 +02:00