changes
This commit is contained in:
1 parent
1399377808
commit
37329b1b36
4 files changed
+4
-5
No files matched your search
@@ -55,9 +55,6 @@ define Package/$(PKG_NAME)/install
|
|||||||
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/view/admin_status/index
|
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/view/admin_status/index
|
||||||
$(INSTALL_DATA) ./files/battery.htm $(1)/usr/lib/lua/luci/view/admin_status/index/20_battery.htm
|
$(INSTALL_DATA) ./files/battery.htm $(1)/usr/lib/lua/luci/view/admin_status/index/20_battery.htm
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/lib/preinit
|
|
||||||
$(INSTALL_BIN) ./files/preinit/05_dim_backlight $(1)/lib/preinit/05_dim_backlight
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/postinst
|
define Package/$(PKG_NAME)/postinst
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ define Build/Compile
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define KernelPackage/fbtft-gc9107/install
|
define KernelPackage/fbtft-gc9107/install
|
||||||
|
$(INSTALL_DIR) $(1)/lib/preinit
|
||||||
|
$(INSTALL_BIN) ./preinit/05_dim_backlight $(1)/lib/preinit/05_dim_backlight
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call KernelPackage,fbtft-gc9107))
|
$(eval $(call KernelPackage,fbtft-gc9107))
|
||||||
File renamed without changes.
@@ -247,10 +247,10 @@ int main(int argc, char *argv[]) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
int opt;
|
int opt;
|
||||||
while ((opt = getopt(argc, argv, "b:Cn:t:s:p:h:qc")) != -1) { // NEW: Added 'C' flag
|
while ((opt = getopt(argc, argv, "b:cn:t:s:p:h:qu")) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'b': cfg.battery = atoi(optarg); break;
|
case 'b': cfg.battery = atoi(optarg); break;
|
||||||
case 'c': cfg.charging = 1; break; // NEW: charging flag
|
case 'c': cfg.charging = 1; break;
|
||||||
case 'n': strncpy(cfg.operator, optarg, 31); break;
|
case 'n': strncpy(cfg.operator, optarg, 31); break;
|
||||||
case 't': strncpy(cfg.network_type, optarg, 7); break;
|
case 't': strncpy(cfg.network_type, optarg, 7); break;
|
||||||
case 's': strncpy(cfg.ssid, optarg, 63); break;
|
case 's': strncpy(cfg.ssid, optarg, 63); break;
|
||||||
|
|||||||
Reference in new issue
Block a user