luci-add-conffiles.sh 360 B

12345678910111213141516
  1. add_luci_conffiles()
  2. {
  3. local filelist="$1"
  4. # save ssl certs
  5. if [ -d /etc/nixio ]; then
  6. find /etc/nixio -type f >> $filelist
  7. fi
  8. # save uhttpd certs
  9. [ -f "/etc/uhttpd.key" ] && echo /etc/uhttpd.key >> $filelist
  10. [ -f "/etc/uhttpd.crt" ] && echo /etc/uhttpd.crt >> $filelist
  11. }
  12. sysupgrade_init_conffiles="$sysupgrade_init_conffiles add_luci_conffiles"