# Nomad sysupgrade keep list.
#
# OpenWrt / GL.iNet "Keep Settings" sysupgrade only backs up files on
# the keep list (the /etc/config conffiles plus the paths named here)
# before flashing a fresh rootfs, then restores them afterwards. Nomad
# lives outside /etc/config, so without this file the whole agent is
# wiped by every firmware upgrade. Listing the paths here makes the
# code survive; /etc/uci-defaults/95-nomad-reconcile then re-enables
# the services and reinstalls opkg deps on the first boot (it is
# re-staged each watchdog cycle by nomad.reconcile.tick).
#
# busybox tar reads this via `tar -T`: entries are taken literally (no
# globbing), directories are recursed. So list directories whole and
# files by exact name. The /etc/rc.d/S* enable symlinks are NOT listed
# — reconcile recreates them, which also picks the correct mutually-
# exclusive scheduler (buttond vs watchdog) for the hardware.
#
# /etc/config/nomad* is omitted on purpose: those are opkg conffiles
# and the keep mechanism already preserves them.
/etc/nomad
/usr/bin/nomad
/etc/init.d/nomad
/etc/init.d/nomad-api
/etc/init.d/nomad-buttond
/etc/init.d/nomad-swap
/etc/init.d/nomad-watchdog
/usr/lib/lua/luci/controller/nomad.lua
/usr/share/rpcd/acl.d/luci-app-nomad.json
/usr/lib/nomad
/usr/share/nomad
/www/luci-static/nomad-leaflet
/etc/uci-defaults/95-nomad-reconcile
