Re: [OpenWrt-Devel] [PATCHv3] ubox: run init script through shellcheck

2020-04-18 Thread Kevin 'ldir' Darbyshire-Bryant
> On 18 Apr 2020, at 01:56, Rosen Penev wrote: > > On Fri, Apr 17, 2020 at 1:50 AM wrote: >> >>> >>> - [ $log_buffer_size -eq 0 -a $log_size -gt 0 ] && >>> log_buffer_size=$log_size >>> - [ $log_buffer_size -eq 0 ] && log_buffer_size=64 >>> + [ "$log_buffer_size" -eq 0 ] && [

[OpenWrt-Devel] [PATCH] ath79: add support for AVM FRITZ!WLAN Repeater 450E

2020-04-18 Thread David Bauer
SOC:Qualcomm QCA9556 (Scorpion) 560MHz MIPS74Kc RAM:64MB Zentel A3R12E40CBF DDR2 FLASH: 16MiB Winbond W25Q128 SPI NOR WLAN1: QCA9556 2.4 GHz 802.11b/g/n 3x3 INPUT: WPS button LED:Power, WiFi, LAN, RSSI indicator Serial: Header Next to Black metal shield Pinout is 3.3V - RX -

[OpenWrt-Devel] [PATCH] toolchain/gcc: eliminate uClibc atexit hack

2020-04-18 Thread Rosen Penev
This seems to be over 10 years old. It doesn't seem to be needed anymore. Tested on malta with uClibc (selected BROKEN). Signed-off-by: Rosen Penev --- toolchain/gcc/common.mk | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/toolchain/gcc/common.mk

[OpenWrt-Devel] [PATCH] sdk: add OpenWrt branding to menuconfig & .config

2020-04-18 Thread Eneas U de Queiroz
Set the mainmenu symbol in SDK Config.in to "OpenWrt Configuration", the same as the main OpenWrt Config.in. This string is is used as the name of the top menu in menuconfig, and at the top of the .config file. If unset, current kconfig will use "Linux Kernel Configuration". Signed-off-by:

[OpenWrt-Devel] linux5.4: build-dependency to rsync

2020-04-18 Thread Sven Roederer
Hi, I was just building a master-branch for x86-generic and got following error: make[5]: Entering directory '/mnt/local/btrfs/build/freifunk/ffberlin/ firmware/openwrt/build_dir/toolchain-i386_pentium4_gcc-8.4.0_musl/ linux-5.4.28' INSTALL

Re: [OpenWrt-Devel] Possible security issue

2020-04-18 Thread Joel Wirāmu Pauling
I'm sorry for wading into this. As with any security related discussion strawpeople can be made to support any particular thread pulling into infinity. Would I love to see namespaces used as part of the base Openwrt architecture; absolutely. It's been discussed in the past; routing in particular

[OpenWrt-Devel] (no subject)

2020-04-18 Thread Szabolcs Hubai
Hello, This is my second attempt to fix the snapshot images for D-Link DIR 860L B1. This device accepts uncompressed uImages as initramfs only. >From the flash it expects LZMA compressed image and ignores the uImage header. To create a bootable image, the LZMA packed kernel prepared with

[OpenWrt-Devel] [PATCH 1/2] ramips: define image recipe for plain lzma-loader for advanced cases

2020-04-18 Thread Szabolcs Hubai
This change allows to make other transformations to kernel before uImage Signed-off-by: Szabolcs Hubai --- target/linux/ramips/image/Makefile | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile

[OpenWrt-Devel] [PATCH 2/2] ramips: mt7621: use lzma-loader for D-Link DIR-860L

2020-04-18 Thread Szabolcs Hubai
This device has trouble extracting big kernel from flash, and supports LZMA compressed kernels only. Using OpenWrt kernel loader saves us 64 KB compared to the dictionary size limiting workaround. Factory image sizes (commit: 5f126c541a74) with "CONFIG_ALL_KMODS=y": - original ("-d23", default):

Re: [OpenWrt-Devel] [PATCHv3] ubox: run init script through shellcheck

2020-04-18 Thread Rosen Penev
On Sat, Apr 18, 2020 at 2:22 AM Kevin 'ldir' Darbyshire-Bryant wrote: > > > > > On 18 Apr 2020, at 01:56, Rosen Penev wrote: > > > > On Fri, Apr 17, 2020 at 1:50 AM wrote: > >> > >>> > >>> - [ $log_buffer_size -eq 0 -a $log_size -gt 0 ] && > >>> log_buffer_size=$log_size > >>> - [

Re: [OpenWrt-Devel] Possible security issue

2020-04-18 Thread Wes Turner
Maybe it should be something like: ```bash groupadd ubus for user in "root ..."; do usermod -a -G ubus "${user}" done chgrp ubus /sbin/uci /var/run/ubus.sock chmod g+rw /var/run/ubus.sock chmod g+rwx /sbin/uci chmod o-rwx /sbin/uci /var/run/ubus.sock ``` What would this break?