Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hello Guys,

It's working. Thanks a lot to all of you :)

On Mon, Aug 3, 2015 at 10:43 AM, David Lang  wrote:

> The way to do this is to first forget about the factory reset problem and
> configure the AP to do what you want (including any encryption)
>
> then you can take the resulting file and put it into the build system so
> that it becomes the 'factory default' settings.
>
> Since you are not understanding how to configure the files from the
> documentation, configure them from the GUI and then look at the resulting
> files.
>
> David Lang
>
>
> On Mon, 3 Aug 2015, John kerry wrote:
>
> Hi All,
>>
>> I created separate files directory and added network and wireless files
>> and
>> its working everything but still i am not able to use encryption wpa2.
>> Below is the my script.
>> config wifi-device  wifi0
>>option type qcawifi
>>option channel  auto
>>option macaddr  00:03:7f:42:06:61
>>option hwmode   11ng
>># REMOVE THIS LINE TO ENABLE WIFI:
>>option disabled 0
>>
>> config wifi-iface
>>option device   wifi0
>>option network  lan
>>option mode ap
>>option ssid CD-1
>>option encryption psk2
>>option key  CD-1
>>
>> M I doing anything wrong?
>>
>> Thanks,
>>
>> On Mon, Aug 3, 2015 at 6:40 AM, David Lang  wrote:
>>
>> to make the config be there after a factory reset, you need to put the
>>> changes into the image that you build.
>>>
>>> you already did this for /etc/config/network, do the same thing for
>>> /etc/config/wireless
>>>
>>> David Lang
>>>
>>>
>>> On Sun, 2 Aug 2015, John kerry wrote:
>>>
>>> Hi Leiten,
>>>

 I have one issue, after upgrading this firmware it will load wireless
 configuration with this changes, actually it should load when i do
 factory
 reset.

 Thanks,

 On Sun, Aug 2, 2015 at 3:45 PM, John kerry  wrote:

 Hi Leiten,

>
> Thank you so much, Its working :)
>
> On Sun, Aug 2, 2015 at 3:12 PM, N.Leiten  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.@wifi-device[0].disabled=0;
>>> uci set system.@system[0].hostname=test_ap
>>> uci set wireless.@wifi-iface[0].mode=ap
>>> uci set wireless.@wifi-iface[0].ssid=CD-2.4D
>>> uci set wireless.@wifi-iface[0].encryption=none
>>> uci set wireless.@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 
>>> 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 :

 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@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
> ___
>
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-

Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread David Lang
The way to do this is to first forget about the factory reset problem and 
configure the AP to do what you want (including any encryption)


then you can take the resulting file and put it into the build system so that it 
becomes the 'factory default' settings.


Since you are not understanding how to configure the files from the 
documentation, configure them from the GUI and then look at the resulting files.


David Lang

On Mon, 3 Aug 2015, John kerry wrote:


Hi All,

I created separate files directory and added network and wireless files and
its working everything but still i am not able to use encryption wpa2.
Below is the my script.
config wifi-device  wifi0
   option type qcawifi
   option channel  auto
   option macaddr  00:03:7f:42:06:61
   option hwmode   11ng
   # REMOVE THIS LINE TO ENABLE WIFI:
   option disabled 0

config wifi-iface
   option device   wifi0
   option network  lan
   option mode ap
   option ssid CD-1
   option encryption psk2
   option key  CD-1

M I doing anything wrong?

Thanks,

On Mon, Aug 3, 2015 at 6:40 AM, David Lang  wrote:


to make the config be there after a factory reset, you need to put the
changes into the image that you build.

you already did this for /etc/config/network, do the same thing for
/etc/config/wireless

David Lang


On Sun, 2 Aug 2015, John kerry wrote:

Hi Leiten,


I have one issue, after upgrading this firmware it will load wireless
configuration with this changes, actually it should load when i do factory
reset.

Thanks,

On Sun, Aug 2, 2015 at 3:45 PM, John kerry  wrote:

Hi Leiten,


Thank you so much, Its working :)

On Sun, Aug 2, 2015 at 3:12 PM, N.Leiten  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.@wifi-device[0].disabled=0;
uci set system.@system[0].hostname=test_ap
uci set wireless.@wifi-iface[0].mode=ap
uci set wireless.@wifi-iface[0].ssid=CD-2.4D
uci set wireless.@wifi-iface[0].encryption=none
uci set wireless.@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  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 :


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@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

___

openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

___

openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel





___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hi All,

I created separate files directory and added network and wireless files and
its working everything but still i am not able to use encryption wpa2.
Below is the my script.
config wifi-device  wifi0
option type qcawifi
option channel  auto
option macaddr  00:03:7f:42:06:61
option hwmode   11ng
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 0

config wifi-iface
option device   wifi0
option network  lan
option mode ap
option ssid CD-1
option encryption psk2
option key  CD-1

M I doing anything wrong?

Thanks,

On Mon, Aug 3, 2015 at 6:40 AM, David Lang  wrote:

> to make the config be there after a factory reset, you need to put the
> changes into the image that you build.
>
> you already did this for /etc/config/network, do the same thing for
> /etc/config/wireless
>
> David Lang
>
>
> On Sun, 2 Aug 2015, John kerry wrote:
>
> Hi Leiten,
>>
>> I have one issue, after upgrading this firmware it will load wireless
>> configuration with this changes, actually it should load when i do factory
>> reset.
>>
>> Thanks,
>>
>> On Sun, Aug 2, 2015 at 3:45 PM, John kerry  wrote:
>>
>> Hi Leiten,
>>>
>>> Thank you so much, Its working :)
>>>
>>> On Sun, Aug 2, 2015 at 3:12 PM, N.Leiten  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.@wifi-device[0].disabled=0;
> uci set system.@system[0].hostname=test_ap
> uci set wireless.@wifi-iface[0].mode=ap
> uci set wireless.@wifi-iface[0].ssid=CD-2.4D
> uci set wireless.@wifi-iface[0].encryption=none
> uci set wireless.@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  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 :
>>
>>> 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@lists.openwrt.org
>>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>>
>>> ___
>> openwrt-devel mailing list
>> openwrt-devel@lists.openwrt.org
>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>
>> ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


>>>
>>>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread David Lang
to make the config be there after a factory reset, you need to put the changes 
into the image that you build.


you already did this for /etc/config/network, do the same thing for 
/etc/config/wireless


David Lang

On Sun, 2 Aug 2015, John kerry wrote:


Hi Leiten,

I have one issue, after upgrading this firmware it will load wireless
configuration with this changes, actually it should load when i do factory
reset.

Thanks,

On Sun, Aug 2, 2015 at 3:45 PM, John kerry  wrote:


Hi Leiten,

Thank you so much, Its working :)

On Sun, Aug 2, 2015 at 3:12 PM, N.Leiten  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.@wifi-device[0].disabled=0;
uci set system.@system[0].hostname=test_ap
uci set wireless.@wifi-iface[0].mode=ap
uci set wireless.@wifi-iface[0].ssid=CD-2.4D
uci set wireless.@wifi-iface[0].encryption=none
uci set wireless.@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  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 :

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@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel




___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/2] sunxi: fix uboot install location

2015-08-02 Thread Matthias Schiffer
On 07/31/2015 06:06 PM, Zoltan HERPAI wrote:
> On Sun, 26 Jul 2015, Zoltan HERPAI wrote:
> 
>> On Fri, 24 Jul 2015, John Crispin wrote:
>>
>>> On 16/07/2015 22:20, Matthias Schiffer wrote:
 -BOARDS:= \
 -sun4i-a10-cubieboard \
 -sun4i-a10-olinuxino-lime \
 -sun4i-a10-pcduino \
 -sun5i-a13-olinuxino \
 -sun6i-a31-colombus \
 -sun6i-a31-m9 \
 -sun7i-a20-bananapi \
 -sun7i-a20-bananapro \
 -sun7i-a20-cubieboard2 \
 -sun7i-a20-cubietruck \
 -sun7i-a20-olinuxino-lime \
 -sun7i-a20-olinuxino-micro \
 -sun7i-a20-pcduino3 \
 -sun7i-a20-lamobo-r1
 -
  define Image/BuildKernel
  mkimage -A arm -O linux -T kernel -C none \
  -a 0x40008000 -e 0x40008000 \
  -n 'ARM OpenWrt Linux-$(LINUX_VERSION)' \
  -d $(KDIR)/zImage $(BIN_DIR)/$(IMG_PREFIX)-uImage
 -
 +
  ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
  $(CP) $(KDIR)/zImage-initramfs
 $(BIN_DIR)/$(IMG_PREFIX)-zImage-initramfs
  echo -ne '\x00\x00\x00\x00' >>
 $(BIN_DIR)/$(IMG_PREFIX)-zImage-initramfs
 @@ -42,27 +26,23 @@ define Image/BuildKernel
  $(BIN_DIR)/$(IMG_PREFIX)-uImage-initramfs \
  )
  endif
 -
 -$(foreach board,$(BOARDS),
 -$(CP) $(DTS_DIR)/$(board).dtb $(BIN_DIR)/
 -)
  endef
>>>
>>> not sure about this change. maybe just stage the dtb file of the
>>> selected profile. i am not sure if zoltan added this for a reason.
>>
>> Thanks John and Matthias for checking on this. I'm offline until the
>> 30th, will get back on this at that time.
> 
> Before the sdcard imagebuilder, the dtb files for the supported boards
> were copied to BIN_DIR so the user could pick the correct dtb for the
> board. When the imagebuilder was rolled out, this was not removed from
> the Makefile - now it can go away, so I'm OK with removing this part.
> Although it's a good place to see which boards are supported, there are
> much better ways to do this.
> 
> Building boot.img is probably fine to stay in KDIR - that's an interim
> file and not the final image. If you want that changed, please send a v2
> - if not, I'm happy to apply the series in its current form.
> 
> Thanks,
> -w-

I think KDIR should be considered read-only for the Image Builder, it
should not put files there (please correct me if I'm wrong, I'm only
deducing this from how it's done on other targets...).

My updated patch will build the boot image in KDIR_TMP instead, which is
more appropriate in my opinion.

Matthias





signature.asc
Description: OpenPGP digital signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread Donk
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

A how-to for create your own firmware with your own default files:
http://wiki.openwrt.org/doc/howto/obtain.firmware.generate
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJVvlEPAAoJEFk5KK+nQki4+4kQAIzZDpsGuDvRv+EVJMOTWEkR
wnxnCY5SccLMkBKi3S14Klm8z/gnScUpPmv628tUeg6E8MBdCSLCHdShF9Y/cNtO
TgEEo5zUi0dmRSGkGZhctsyKr3u3ua2tXSDPm5cBLVJuWQmXZB04kabky94uCFOH
bTQ51tgFMw6MZvQ1gZ4PRwlNjHl2LqrvZ1j6m3iPFykJbpMBtwD101XiXNfHU/SQ
zzGR5KHWGrATMmb1Gq7v5ibC4yrjYJSk96+psTlbh+0jZTCB5EydsfWcXz1s6/uG
N9cAa6CZk2K1QkpvdXNSG37BzKlSm9XYxKfJTHx/tBlBDyk+7GwvVEMCho2M5umb
jrozr6FqB9wdkFZAiFfOqBzN+TyyTnYZB6UgTrREEj7XKr7/MLV8oGJWnObz8wVI
Yg/X6UqcV7Ev7capldbpfsZzh3HQMybM8ps3X6u7FvJwCn5PpFskYrfN+z6PW+Lx
/MxG03YoolIQAgQA7mrnn0p1XygAzNZaq44z7cerx1B/8ts1LTd4mQrn0QQHaQn1
I9ab7P599C5dzAUEn0IvmDr7CL+H6CWonRYoi/Tt+FbuGhobITvh1Aq8cXlnsXtw
PWxxKNrz2ibNbIIIOIKf29I7R30kIklh2tKBbemI7Z222L3HIb6gur/ZMgccPmua
pQeba8dGEjlyQNQtuaTN
=21X+
-END PGP SIGNATURE-
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hi,

See that i created files in console,

The main source code there is path :

package/base-files/files/etc/config/

under this now already two files are there, but if i see in console under
/etc/config it shows
rwxrwxr-x1 root root 0 Jan  1  1970 .
drwxrwxr-x1 root root 0 Jul 30 18:33 ..
-rw-rw-r--1 root root  4045 Jul 30 16:47 ddns
-rw-r--r--1 root root   885 Jul 30 18:08 dhcp
-rw-r--r--1 root root  1642 Jul 30  2015 dhcp6c
-rw-r--r--1 root root   134 Jul 30 18:09 dropbear
-rw-r--r--1 root root  2148 Jul 30 18:33 firewall
-rw-r--r--1 root root   645 Jul 30 18:33 luci
-rw-r--r--1 root root   131 Jul 30 18:44 mcproxy
-rw-r--r--1 root root   763 Jul 30 18:33 network
-rw-rw-r--1 root root89 Jul 30 16:47 pppoe
-rw-rw-r--1 root root  1773 Jul 30 16:47 qos
-rw-r--r--1 root root   652 Jul 30 18:49 radvd
-rw-r--r--1 root root   324 Jul 30 18:49 ripd
-rw-r--r--1 root root 0 Jul 30 18:33 sound
-rw-rw-r--1 root root   407 Jul 30 18:33 system
-rw-r--r--1 root root   128 Jul 30 18:33 ubootenv
-rw-r--r--1 root root   680 Jul 30 18:33 ucitrack
-rw-r--r--1 root root  2408 Jul 30 18:23 uhttpd
-rw-r--r--1 root root   646 Jul 30 18:33 upnpd

I am not getting where to create new directory and add this files.

Sorry I am totally new in this, It may be silly question please guide me.

Thanks,

On Mon, Aug 3, 2015 at 12:58 AM, Weedy  wrote:

> make
>
> On Sun, Aug 2, 2015 at 12:56 PM, John kerry  wrote:
> > Hi,
> >
> > so i created directory as below  and copy the following files
> >
> > root@OpenWrt:/# ls -al files/etc/config/
> > drwxr-xr-x2 root root 0 Jul 30 18:42 .
> > drwxr-xr-x3 root root 0 Jul 30 18:35 ..
> > -rw-r--r--1 root root  4045 Jul 30 18:42 ddns
> > -rw-r--r--1 root root   885 Jul 30 18:41 dhcp
> > -rw-r--r--1 root root  2148 Jul 30 18:41 firewall
> > -rw-r--r--1 root root   763 Jul 30 18:41 network
> > -rw-r--r--1 root root   646 Jul 30 18:42 upnpd
> > -rw-r--r--1 root root   718 Jul 30 18:36 wireless
> >
> > but how i will link this into building image.
> >
> >
> >
> >
> > 2015-08-03 0:38 GMT+08:00 Weedy :
> >>
> >> You seem to be having problems using uci-defaults. So forget that.
> >>
> >> Copy the running/working/complete config file from your device into
> >> files/etc/config/wireless.
> >> You need to make the files directory. You can put anything in there.
> >>
> >> weedy@HAF ~/projects/openwrt $ ls -al files/etc/config/
> >> total 60
> >> drwxr-xr-x 2 weedy weedy 4096 Jul 13 23:05 .
> >> drwxr-xr-x 8 weedy weedy 4096 Jul 31 00:35 ..
> >> -rw-r--r-- 1 weedy weedy  138 Jul 13 23:05 darkstat
> >> -rw-r--r-- 1 weedy weedy  441 Jul 13 23:05 ddns
> >> -rw-r--r-- 1 weedy weedy 1204 Jul 30 22:48 dhcp
> >> -rw-r--r-- 1 weedy weedy  119 Jul 13 23:05 dropbear
> >> -rw-r--r-- 1 weedy weedy 4290 Jul 13 23:05 firewall
> >> -rw-r--r-- 1 weedy weedy   38 Jun 11  2013 netcheck
> >> -rw-r--r-- 1 weedy weedy 1059 Jul 13 23:05 network
> >> -rw-r--r-- 1 weedy weedy 1821 Jun 30 21:04 qos
> >> -rw-r--r-- 1 weedy weedy  761 Jul 13 23:05 system
> >> -rw-r--r-- 1 weedy weedy 2165 Jul 13 23:05 uhttpd
> >> -rw-r--r-- 1 weedy weedy  639 Jul 13 23:05 upnpd
> >> -rw-r--r-- 1 weedy weedy 1353 Jul 13 23:05 wireless
> >
> >
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread Weedy
make

On Sun, Aug 2, 2015 at 12:56 PM, John kerry  wrote:
> Hi,
>
> so i created directory as below  and copy the following files
>
> root@OpenWrt:/# ls -al files/etc/config/
> drwxr-xr-x2 root root 0 Jul 30 18:42 .
> drwxr-xr-x3 root root 0 Jul 30 18:35 ..
> -rw-r--r--1 root root  4045 Jul 30 18:42 ddns
> -rw-r--r--1 root root   885 Jul 30 18:41 dhcp
> -rw-r--r--1 root root  2148 Jul 30 18:41 firewall
> -rw-r--r--1 root root   763 Jul 30 18:41 network
> -rw-r--r--1 root root   646 Jul 30 18:42 upnpd
> -rw-r--r--1 root root   718 Jul 30 18:36 wireless
>
> but how i will link this into building image.
>
>
>
>
> 2015-08-03 0:38 GMT+08:00 Weedy :
>>
>> You seem to be having problems using uci-defaults. So forget that.
>>
>> Copy the running/working/complete config file from your device into
>> files/etc/config/wireless.
>> You need to make the files directory. You can put anything in there.
>>
>> weedy@HAF ~/projects/openwrt $ ls -al files/etc/config/
>> total 60
>> drwxr-xr-x 2 weedy weedy 4096 Jul 13 23:05 .
>> drwxr-xr-x 8 weedy weedy 4096 Jul 31 00:35 ..
>> -rw-r--r-- 1 weedy weedy  138 Jul 13 23:05 darkstat
>> -rw-r--r-- 1 weedy weedy  441 Jul 13 23:05 ddns
>> -rw-r--r-- 1 weedy weedy 1204 Jul 30 22:48 dhcp
>> -rw-r--r-- 1 weedy weedy  119 Jul 13 23:05 dropbear
>> -rw-r--r-- 1 weedy weedy 4290 Jul 13 23:05 firewall
>> -rw-r--r-- 1 weedy weedy   38 Jun 11  2013 netcheck
>> -rw-r--r-- 1 weedy weedy 1059 Jul 13 23:05 network
>> -rw-r--r-- 1 weedy weedy 1821 Jun 30 21:04 qos
>> -rw-r--r-- 1 weedy weedy  761 Jul 13 23:05 system
>> -rw-r--r-- 1 weedy weedy 2165 Jul 13 23:05 uhttpd
>> -rw-r--r-- 1 weedy weedy  639 Jul 13 23:05 upnpd
>> -rw-r--r-- 1 weedy weedy 1353 Jul 13 23:05 wireless
>
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hi,

so i created directory as below  and copy the following files

root@OpenWrt:/# ls -al files/etc/config/
drwxr-xr-x2 root root 0 Jul 30 18:42 .
drwxr-xr-x3 root root 0 Jul 30 18:35 ..
-rw-r--r--1 root root  4045 Jul 30 18:42 ddns
-rw-r--r--1 root root   885 Jul 30 18:41 dhcp
-rw-r--r--1 root root  2148 Jul 30 18:41 firewall
-rw-r--r--1 root root   763 Jul 30 18:41 network
-rw-r--r--1 root root   646 Jul 30 18:42 upnpd
-rw-r--r--1 root root   718 Jul 30 18:36 wireless

but how i will link this into building image.




2015-08-03 0:38 GMT+08:00 Weedy :

> You seem to be having problems using uci-defaults. So forget that.
>
> Copy the running/working/complete config file from your device into
> files/etc/config/wireless.
> You need to make the files directory. You can put anything in there.
>
> weedy@HAF ~/projects/openwrt $ ls -al files/etc/config/
> total 60
> drwxr-xr-x 2 weedy weedy 4096 Jul 13 23:05 .
> drwxr-xr-x 8 weedy weedy 4096 Jul 31 00:35 ..
> -rw-r--r-- 1 weedy weedy  138 Jul 13 23:05 darkstat
> -rw-r--r-- 1 weedy weedy  441 Jul 13 23:05 ddns
> -rw-r--r-- 1 weedy weedy 1204 Jul 30 22:48 dhcp
> -rw-r--r-- 1 weedy weedy  119 Jul 13 23:05 dropbear
> -rw-r--r-- 1 weedy weedy 4290 Jul 13 23:05 firewall
> -rw-r--r-- 1 weedy weedy   38 Jun 11  2013 netcheck
> -rw-r--r-- 1 weedy weedy 1059 Jul 13 23:05 network
> -rw-r--r-- 1 weedy weedy 1821 Jun 30 21:04 qos
> -rw-r--r-- 1 weedy weedy  761 Jul 13 23:05 system
> -rw-r--r-- 1 weedy weedy 2165 Jul 13 23:05 uhttpd
> -rw-r--r-- 1 weedy weedy  639 Jul 13 23:05 upnpd
> -rw-r--r-- 1 weedy weedy 1353 Jul 13 23:05 wireless
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread Weedy
You seem to be having problems using uci-defaults. So forget that.

Copy the running/working/complete config file from your device into
files/etc/config/wireless.
You need to make the files directory. You can put anything in there.

weedy@HAF ~/projects/openwrt $ ls -al files/etc/config/
total 60
drwxr-xr-x 2 weedy weedy 4096 Jul 13 23:05 .
drwxr-xr-x 8 weedy weedy 4096 Jul 31 00:35 ..
-rw-r--r-- 1 weedy weedy  138 Jul 13 23:05 darkstat
-rw-r--r-- 1 weedy weedy  441 Jul 13 23:05 ddns
-rw-r--r-- 1 weedy weedy 1204 Jul 30 22:48 dhcp
-rw-r--r-- 1 weedy weedy  119 Jul 13 23:05 dropbear
-rw-r--r-- 1 weedy weedy 4290 Jul 13 23:05 firewall
-rw-r--r-- 1 weedy weedy   38 Jun 11  2013 netcheck
-rw-r--r-- 1 weedy weedy 1059 Jul 13 23:05 network
-rw-r--r-- 1 weedy weedy 1821 Jun 30 21:04 qos
-rw-r--r-- 1 weedy weedy  761 Jul 13 23:05 system
-rw-r--r-- 1 weedy weedy 2165 Jul 13 23:05 uhttpd
-rw-r--r-- 1 weedy weedy  639 Jul 13 23:05 upnpd
-rw-r--r-- 1 weedy weedy 1353 Jul 13 23:05 wireless
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hi,

Sorry i didn't get, you mean to say i should not add files under

vi target/linux/ar71xx/base-files/etc/uci-defaults/99-wireless

Could you please explain.



On Mon, Aug 3, 2015 at 12:22 AM, Weedy  wrote:

>
> On 2 Aug 2015 12:19, "John kerry"  wrote:
> >
> > Hi,
> >
> > I am using below uci script,
> >
> > vi target/linux/ar71xx/base-files/etc/uci-defaults/99-wireless
>
> If you're building images yourself you might like to use files/ instead.
>
> /files/etc/config/wireless
>
> You can dump any file you want in the finished image in there.
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread Weedy
On 2 Aug 2015 12:19, "John kerry"  wrote:
>
> Hi,
>
> I am using below uci script,
>
> vi target/linux/ar71xx/base-files/etc/uci-defaults/99-wireless

If you're building images yourself you might like to use files/ instead.

/files/etc/config/wireless

You can dump any file you want in the finished image in there.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hi,

I am using below uci script,

vi target/linux/ar71xx/base-files/etc/uci-defaults/99-wireless

#copyright (c) 2013 The Linux Foundation. All rights reserved.
# Copyright (C) 2011 OpenWrt.org
#


touch /etc/config/wireless

uci set wireless.@wifi-device[0].disabled=0;
uci set system.@system[0].hostname=OpenWrt
uci set wireless.@wifi-iface[0].mode=ap
uci set wireless.@wifi-iface[0].ssid=Home_plug_1
uci set wireless.@wifi-iface[0].encryption=wpa2
uci set wireless.@wifi-iface[0].key="Home_plug_1"
#uci set wireless.radio0.disabled=0

uci set wireless.@wifi-device[1].disabled=0;
uci set wireless.@wifi-iface[1].mode=ap
uci set wireless.@wifi-iface[1].ssid=Home_plug_2
uci set wireless.@wifi-iface[1].encryption=wpa2
uci set wireless.@wifi-iface[1].key="Home_plug_2"
#uci set wireless.radio0.disabled=0


uci commit wireless

exit 0

The default SSID is working but not able to set encryption type and key.

Thanks,


On Sun, Aug 2, 2015 at 9:19 PM, John kerry  wrote:

> Hi Leiten,
>
> I have one issue, after upgrading this firmware it will load wireless
> configuration with this changes, actually it should load when i do factory
> reset.
>
> Thanks,
>
> On Sun, Aug 2, 2015 at 3:45 PM, John kerry  wrote:
>
>> Hi Leiten,
>>
>> Thank you so much, Its working :)
>>
>> On Sun, Aug 2, 2015 at 3:12 PM, N.Leiten  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.@wifi-device[0].disabled=0;
>>> > uci set system.@system[0].hostname=test_ap
>>> > uci set wireless.@wifi-iface[0].mode=ap
>>> > uci set wireless.@wifi-iface[0].ssid=CD-2.4D
>>> > uci set wireless.@wifi-iface[0].encryption=none
>>> > uci set wireless.@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  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 :
>>> > > > 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@lists.openwrt.org
>>> > > > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>> > > >
>>> > > ___
>>> > > openwrt-devel mailing list
>>> > > openwrt-devel@lists.openwrt.org
>>> > > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>> > >
>>> ___
>>> openwrt-devel mailing list
>>> openwrt-devel@lists.openwrt.org
>>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>>
>>
>>
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hi Leiten,

I have one issue, after upgrading this firmware it will load wireless
configuration with this changes, actually it should load when i do factory
reset.

Thanks,

On Sun, Aug 2, 2015 at 3:45 PM, John kerry  wrote:

> Hi Leiten,
>
> Thank you so much, Its working :)
>
> On Sun, Aug 2, 2015 at 3:12 PM, N.Leiten  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.@wifi-device[0].disabled=0;
>> > uci set system.@system[0].hostname=test_ap
>> > uci set wireless.@wifi-iface[0].mode=ap
>> > uci set wireless.@wifi-iface[0].ssid=CD-2.4D
>> > uci set wireless.@wifi-iface[0].encryption=none
>> > uci set wireless.@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  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 :
>> > > > 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@lists.openwrt.org
>> > > > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>> > > >
>> > > ___
>> > > openwrt-devel mailing list
>> > > openwrt-devel@lists.openwrt.org
>> > > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>> > >
>> ___
>> openwrt-devel mailing list
>> openwrt-devel@lists.openwrt.org
>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>
>
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] ramips: Fix Ticket #20153 swap radio calibration data pointers on the RE6500

2015-08-02 Thread Michael Bastian
I applied this patch against CC r46531 and the signal levels on both bands are 
now fine.
A bit lower than on my Archer C7(CC RC2) but that was to be expected.

> "L. D. Pinney"  hat am 29. Juli 2015 um 11:33 geschrieben:
> 
> 
> This patch fixes weak radio signal reported by nikola.georgiev
> 
> Signed-off-by: L. D. Pinney 
> ---
> Patch applies to CC as well.
> 
>  target/linux/ramips/dts/RE6500.dts | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/target/linux/ramips/dts/RE6500.dts 
> b/target/linux/ramips/dts/RE6500.dts
> index 0c33994..36d6218 100644
> --- a/target/linux/ramips/dts/RE6500.dts
> +++ b/target/linux/ramips/dts/RE6500.dts
> @@ -69,7 +69,7 @@
>   mt76@0,0 {
>   reg = <0x 0 0 0 0>;
>   device_type = "pci";
> - mediatek,mtd-eeprom = <&factory 0x8000>;
> + mediatek,mtd-eeprom = <&factory 0x>;
>   mediatek,2ghz = <0>;
>   };
>   };
> @@ -78,7 +78,7 @@
>   mt76@1,0 {
>   reg = <0x 0 0 0 0>;
>   device_type = "pci";
> - mediatek,mtd-eeprom = <&factory 0x>;
> + mediatek,mtd-eeprom = <&factory 0x8000>;
>   mediatek,5ghz = <0>;
>   };
>   };
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread John kerry
Hi Leiten,

Thank you so much, Its working :)

On Sun, Aug 2, 2015 at 3:12 PM, N.Leiten  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.@wifi-device[0].disabled=0;
> > uci set system.@system[0].hostname=test_ap
> > uci set wireless.@wifi-iface[0].mode=ap
> > uci set wireless.@wifi-iface[0].ssid=CD-2.4D
> > uci set wireless.@wifi-iface[0].encryption=none
> > uci set wireless.@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  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 :
> > > > 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@lists.openwrt.org
> > > > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> > > >
> > > ___
> > > openwrt-devel mailing list
> > > openwrt-devel@lists.openwrt.org
> > > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> > >
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Change OpenWrt Wifi default settings

2015-08-02 Thread N.Leiten
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.@wifi-device[0].disabled=0;
> uci set system.@system[0].hostname=test_ap
> uci set wireless.@wifi-iface[0].mode=ap
> uci set wireless.@wifi-iface[0].ssid=CD-2.4D
> uci set wireless.@wifi-iface[0].encryption=none
> uci set wireless.@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  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 :
> > > 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@lists.openwrt.org
> > > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> > >
> > ___
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> >
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel