A simple way to keep a user swconfig override across upgrades (#481)

This commit is contained in:
Tim Wilkinson 2022-08-16 12:03:13 -07:00 committed by GitHub
parent 696df41d5a
commit 8a2b6f968d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

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

View File

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