Changeset 14496


Ignore:
Timestamp:
03/08/12 22:14:09 (12 years ago)
Author:
nit
Message:

[titan] wlan add startmode to screen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/network.h

    r14485 r14496  
    537537        struct skin* wlan = getscreen("wlansettings");
    538538        struct skin* listbox = getscreennode(wlan, "listbox");
     539        struct skin* startmode = getscreennode(wlan, "startmode");
    539540        struct skin* ssid = getscreennode(wlan, "ssid");
    540541        struct skin* type = getscreennode(wlan, "type");
     
    549550
    550551        readwlan("/var/etc/wpa_supplicant.conf", &wtype, &wssid, &wkey);
     552
     553        addchoicebox(startmode, "y", _("yes"));
     554        addchoicebox(startmode, "n", _("no"));
     555        setchoiceboxselection(startmode, getownconfig("wlan"));
    551556
    552557        changeinput(ssid, wssid);
     
    628633                                if(type->ret != NULL) tmptype = atoi(type->ret);
    629634                                writewlan("/var/etc/wpa_supplicant.conf", tmptype, ssid->ret, key->ret);
     635                                if(startmode->ret != NULL) addownconfig("wlan", startmode->ret);
    630636                                if(rcret == getrcconfigint("rcok", NULL)) break;
    631637                        }
Note: See TracChangeset for help on using the changeset viewer.