diff --git a/package/gluon-simple-tc/Makefile b/package/gluon-simple-tc/Makefile index 0a5847a1..98609551 100644 --- a/package/gluon-simple-tc/Makefile +++ b/package/gluon-simple-tc/Makefile @@ -27,13 +27,13 @@ define Build/Configure endef define Build/Compile - $(GLUON_CONFIGURE) initial.pl > $(PKG_BUILD_DIR)/initial.sh + $(GLUON_CONFIGURE) invariant.pl > $(PKG_BUILD_DIR)/invariant.sh endef define Package/gluon-simple-tc/install $(CP) ./files/* $(1)/ - $(INSTALL_DIR) $(1)/lib/gluon/upgrade/simple-tc/initial - $(INSTALL_BIN) $(PKG_BUILD_DIR)/initial.sh $(1)/lib/gluon/upgrade/simple-tc/initial/010-site-defaults + $(INSTALL_DIR) $(1)/lib/gluon/upgrade/simple-tc/invariant + $(INSTALL_BIN) $(PKG_BUILD_DIR)/invariant.sh $(1)/lib/gluon/upgrade/simple-tc/invariant/010-site-defaults endef $(eval $(call BuildPackage,gluon-simple-tc)) diff --git a/package/gluon-simple-tc/initial.pl b/package/gluon-simple-tc/invariant.pl similarity index 64% rename from package/gluon-simple-tc/initial.pl rename to package/gluon-simple-tc/invariant.pl index fdffdc84..6b91a951 100644 --- a/package/gluon-simple-tc/initial.pl +++ b/package/gluon-simple-tc/invariant.pl @@ -1,23 +1,18 @@ my $cfg = $CONFIG->{simple_tc}; -print <<'END'; -#/bin/sh - -uci -q batch <{$name}; + print "uci -q get gluon-simple-tc.$name >/dev/null || uci -q batch <{$_}\n"; } + + print "EOF\n\n"; } -print <