Skip to content
Permalink
Browse files

rc: add am_addons RC flag to denote support for third party addons

Shell scripts should check whether addons are supported before
attempting to mount their pages and such.  Sample test code:

---

RC_FLAGS=$(nvram get rc_support)

if echo "$RC_FLAGS" | grep -q am_addons
then
        echo "Supported!"
else
        echo "Missing!"
fi
---
  • Loading branch information
RMerl committed Jan 14, 2020
1 parent 463a03a commit fbdb76114d35ab227f71b1543cba734f4b9e20ec
Showing with 2 additions and 0 deletions.
  1. +2 −0 release/src/router/rc/init.c
@@ -8472,6 +8472,8 @@ int init_nvram(void)
add_rc_support("dnsfilter");
#endif

add_rc_support("am_addons");

#ifdef RTCONFIG_NTPD
add_rc_support("ntpd");
#endif

0 comments on commit fbdb761

Please sign in to comment.
You can’t perform that action at this time.