diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-06-30 18:05:07 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-06-30 18:05:07 +0000 |
commit | 58a5b15c0bcf27bebf1ecb5505f3a8cfa99864d2 (patch) | |
tree | be6d1cb90cc6e478623b30bb29e764cb5e3fef48 /libs | |
parent | 205a1b311168b633ca314dfcbb02d3a73b75be8b (diff) |
libs/nixio: add sysupgrade hook to include /etc/nixio/ (generated certs) into saved file list
Diffstat (limited to 'libs')
-rw-r--r-- | libs/nixio/root/lib/upgrade/luci-add-conffiles.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/nixio/root/lib/upgrade/luci-add-conffiles.sh b/libs/nixio/root/lib/upgrade/luci-add-conffiles.sh new file mode 100644 index 000000000..0d9925761 --- /dev/null +++ b/libs/nixio/root/lib/upgrade/luci-add-conffiles.sh @@ -0,0 +1,12 @@ +add_luci_conffiles() +{ + local filelist="$1" + + # save ssl certs + if [ -d /etc/nixio ]; then + find /etc/nixio >> $filelist + fi +} + +sysupgrade_init_conffiles="$sysupgrade_init_conffiles add_luci_conffiles" + |