Improve the installer script 🐒

The installer script now installs the default wpa_supplication.conf configuration file.
This commit is contained in:
Dmitri Popov
2017-05-20 10:35:59 +02:00
parent a2686360b0
commit d116876075
3 changed files with 17 additions and 1 deletions

View File

@@ -34,6 +34,6 @@ The [GNU General Public License version 3](http://www.gnu.org/licenses/gpl-3.0.e
## Linux Photography ## 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).
<img src="https://scribblesandsnaps.files.wordpress.com/2016/07/linux-photography-6.jpg" width="200"/> <img src="https://scribblesandsnaps.files.wordpress.com/2016/07/linux-photography-6.jpg" width="200"/>

View File

@@ -12,6 +12,11 @@ cd
git clone https://github.com/dmpop/little-backup-box.git 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/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 sed -i 's|'media_dir=/var/lib/minidlna'|'media_dir=/media/storage'|' /etc/minidlna.conf
sudo service minidlna start sudo service minidlna start

11
wpa_supplicant.conf Normal file
View File

@@ -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
}