Changeset 32606


Ignore:
Timestamp:
Jul 8, 2017, 1:00:12 PM (3 weeks ago)
Author:
brainslayer
Message:

remove obsolete code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/validate/webs.c

    r32584 r32606  
    46024602void speedchecker_save(webs_t wp)
    46034603{
    4604 
    4605         if (!strcmp(websGetVar(wp, "speedchecker_enable", "0"), "1")) {
    4606                 char uuid[38] = "";
    4607                 FILE *fd = fopen("/proc/sys/kernel/random/uuid", "r");
    4608                 if (fd != NULL) {
    4609                         fgets(uuid, 37, fd);
    4610                         fclose(fd);
    4611                         nvram_seti("speedchecker_enable", 1);
    4612                         nvram_default_get("speedchecker_uuid", uuid);
    4613                         eval("startstop", "speedchecker");
    4614                 }
    4615 
    4616         } else {
    4617                 nvram_seti("speedchecker_enable", 0);
    4618         }
    4619 }
    4620 #endif
     4604        nvram_set("speedchecker_enable", websGetVar(wp, "speedchecker_enable", "0"));
     4605        if (nvram_match("speedchecker_enable", "1")) {
     4606                eval("startstop", "speedchecker");
     4607
     4608        }
     4609}
     4610#endif
Note: See TracChangeset for help on using the changeset viewer.