mirror of https://github.com/aredn/aredn.git
A simple way to keep a user swconfig override across upgrades (#481)
This commit is contained in:
parent
696df41d5a
commit
8a2b6f968d
|
@ -12,6 +12,7 @@
|
|||
/etc/config.mesh/vtun
|
||||
/etc/config.mesh/network_tun
|
||||
/etc/config.mesh/aredn
|
||||
/etc/aredn_include/swconfig.user
|
||||
/etc/dropbear/dropbear_dss_host_key
|
||||
/etc/dropbear/dropbear_rsa_host_key
|
||||
/etc/dropbear/authorized_keys
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
#!/bin/sh
|
||||
# extract auto-generated first boot switch config settings
|
||||
# and store them for future use
|
||||
# and store them for future use. Support advanced user overrides.
|
||||
if [ -f /etc/aredn_include/swconfig.user ]
|
||||
then
|
||||
cp /etc/aredn_include/swconfig.user /etc/aredn_include/swconfig
|
||||
fi
|
||||
if [ ! -f /etc/aredn_include/swconfig ]
|
||||
then
|
||||
mkdir -p /etc/aredn_include
|
||||
|
|
Loading…
Reference in New Issue