sisk
Posts: 32
Joined: Thu Jan 12, 2012 5:04 pm

Update config files from USB

Wed May 17, 2017 4:36 pm

Does anyone have a good way to automatically copy config files from a USB drive when it's plugged in? I know RetroPie does something like this with roms, but I'm wanting to do it with my wifi config file so that when I'm traveling I have a way to get my RasPi based alarm clock on other wifi networks without hooking it up to a monitor and keyboard. That way I can keep getting my news and weather reports every morning (this thing has me spoiled :-/ ).

Bonus points if I can make it check a key file of some sort before it updates the config.

hommar
Posts: 172
Joined: Sat Mar 25, 2017 1:55 pm
Location: Russia, Yekaterinburg

Re: Update config files from USB

Wed May 17, 2017 5:12 pm

You can move /etc/wpa_supplicant/wpa_supplicant.conf to /boot
and make link

Code: Select all

sudo ln -s /boot/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf
For edit this file you can plugin USB/SD to notebook

sisk
Posts: 32
Joined: Thu Jan 12, 2012 5:04 pm

Re: Update config files from USB

Wed May 17, 2017 7:09 pm

As a Linux user I wouldn't even need to move it to the boot partition. I can mount the Ext4 partition directly. The problem with that is that my SD card isn't accessible without taking the whole thing apart.

Return to “General discussion”