[OpenWrt-Devel] Change OpenWrt Wifi default settings

John kerry kerry9842 at gmail.com
Sun Aug 2 03:45:29 EDT 2015


Hi Leiten,

Thank you so much, Its working :)

On Sun, Aug 2, 2015 at 3:12 PM, N.Leiten <nickleiten at gmail.com> wrote:

> Hi,
>
> Don't answer to my e-mail only, you need to add openwrt-devel maillist to
> CC or just answer to CC, in each case I'll receive message but also
> everyone could see all discussion.
>
> In email dated Воскресенье - 02 августа 2015 12:54:32 user John kerry
> wrote:
> > Hi Leiten,
> >
> > I have added new files under and written below :
> > vi target/linux/ar71xx/base-files/etc/uci-defaults/wireless
>
> Use index in prefix of filename to set order of execution, so it'll be
> like '99-wireless'.
>
> >
> > #!/bin/sh
> > #
> > # Copyright (c) 2013 The Linux Foundation. All rights reserved.
> > # Copyright (C) 2011 OpenWrt.org
> > #
> >
> > [ -e /etc/config/wireless ] && exit 0
>
> Here is the problem. When uci-defaults invoke scripts there's already
> preconfiguration done and /etc/config/wireless already exists, so your
> script just exit at this point. Remove this line.
>
> >
> > touch /etc/config/wireless
> >
> > uci set wireless. at wifi-device[0].disabled=0;
> > uci set system. at system[0].hostname=test_ap
> > uci set wireless. at wifi-iface[0].mode=ap
> > uci set wireless. at wifi-iface[0].ssid=CD-2.4D
> > uci set wireless. at wifi-iface[0].encryption=none
> > uci set wireless. at wifi-iface[0].wds=1
> > uci set wireless.radio0.disabled=0
> >
> > uci commit wireless
> >
> > exit 0
> >
> > and compile the source code using make V=s but still not changed default
> > settings.
> >
> > Please help me to make it works.
> >
> > Thanks,
> >
> >
> > On Sat, Aug 1, 2015 at 4:38 PM, N.Leiten <nickleiten at gmail.com> wrote:
> >
> > > You can also use uci-defaults mechanism for your purpose. Just put
> > > script in base-files/etc/uci-defaults and set your preferrable
> > > parameters with uci and don't forget to 'exit 0' at the end of script,
> > > in elsecase it'll be run every time at boot ruining changes.
> > >
> > > 2015-07-31 12:08 GMT+03:00 John kerry <kerry9842 at gmail.com>:
> > > > Hi,
> > > >
> > > > I am working on Ar71xx openWRT Luci project. By default the Wi-Fi is
> > > > disabled and SSID is OpenWrt. I need to change the default settings.
> > > > Could anyone help me to change the default settings.
> > > >
> > > >
> > > > Best Regards,
> > > > John
> > > >
> > > > _______________________________________________
> > > > openwrt-devel mailing list
> > > > openwrt-devel at lists.openwrt.org
> > > > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> > > >
> > > _______________________________________________
> > > openwrt-devel mailing list
> > > openwrt-devel at lists.openwrt.org
> > > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> > >
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150802/00f6c9dc/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list