From d1168760757230922bf88bd95d7bcf302d3efa01 Mon Sep 17 00:00:00 2001 From: Dmitri Popov Date: Sat, 20 May 2017 10:35:59 +0200 Subject: [PATCH] Improve the installer script :monkey: The installer script now installs the default wpa_supplication.conf configuration file. --- README.md | 2 +- install-little-backup-box.sh | 5 +++++ wpa_supplicant.conf | 11 +++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 wpa_supplicant.conf diff --git a/README.md b/README.md index bc5b510..e43b385 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,6 @@ The [GNU General Public License version 3](http://www.gnu.org/licenses/gpl-3.0.e ## Linux Photography -Little Backup Box is a part of a streamlined and automated Linux-based photographic workflow described in the [Linux Photography](https://gumroad.com/l/linux-photography) book. The book provides step-by-step instructions on building a Raspberry Pi-based photo backup device running the Little Backup Box script. Get your copy at [Gumroad](https://gumroad.com/l/linux-photography). +Little Backup Box is a part of a streamlined and automated Linux-based photographic workflow described in the [Linux Photography](https://gumroad.com/l/linux-photography) book. The book provides step-by-step instructions on building a Raspberry Pi-based photo backup device running the Little Backup Box script. Get your copy at [Google Play Store](https://play.google.com/store/books/details/Dmitri_Popov_Linux_Photography?id=cO70CwAAQBAJ) or [Gumroad](https://gumroad.com/l/linux-photography). diff --git a/install-little-backup-box.sh b/install-little-backup-box.sh index fbc0ab7..2f5b39a 100755 --- a/install-little-backup-box.sh +++ b/install-little-backup-box.sh @@ -12,6 +12,11 @@ cd git clone https://github.com/dmpop/little-backup-box.git crontab -l | { cat; echo "@reboot sudo /home/pi/little-backup-box/backup.sh > /home/pi/little-backup-box.log"; } | crontab +crontab -l | { cat; echo "# @reboot sudo /home/pi/little-backup-box/gphoto-backup.sh > /home/pi/gphoto-backup.log"; } | crontab + +cd little-backup-box +sudo /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf.bak/etc/wpa_supplicant/wpa_supplicant.conf +sudo cp wpa_supplicant.conf /etc/wpa_supplicant/ sudo sed -i 's|'media_dir=/var/lib/minidlna'|'media_dir=/media/storage'|' /etc/minidlna.conf sudo service minidlna start diff --git a/wpa_supplicant.conf b/wpa_supplicant.conf new file mode 100644 index 0000000..8ab7de7 --- /dev/null +++ b/wpa_supplicant.conf @@ -0,0 +1,11 @@ +ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev +update_config=1 + +network={ + ssid="LittleBackupBox" + psk="3333333" + proto=RSN + key_mgmt=WPA-PSK + pairwise=CCMP + auth_alg=OPEN +}