<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/jogo/package/base-files, branch master</title>
<subtitle>Staging tree of Jonas Gorski</subtitle>
<id>https://git.openwrt.org/openwrt/staging/jogo/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/jogo/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jogo/'/>
<updated>2020-03-01T20:35:59Z</updated>
<entry>
<title>base-files: Add /etc/shinit for non-login shell init</title>
<updated>2020-03-01T20:35:59Z</updated>
<author>
<name>Jeffery To</name>
</author>
<published>2019-05-02T18:24:27Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jogo/commit/?id=12020f8a95d21547bd7d7fd1fef9cdecf2892803'/>
<id>urn:sha1:12020f8a95d21547bd7d7fd1fef9cdecf2892803</id>
<content type='text'>
Because /etc/profile (and ~/.profile) are read by login shells only,
aliases and functions defined there are not available to non-login
shells, e.g. when using screen or tmux.

If the ENV environment variable exists (exported by /etc/profile or
~/.profile) and references an existing file, then all interactive shells
(login or non-login) will read that file as well.

This sets the ENV environment variable in /etc/profile, pointing to
/etc/shinit.

This also adds /etc/shinit, which:

* Contains alias and function definitions originally in /etc/profile

* Sources /etc/mkshrc if the user is using mksh (also originally in
  /etc/profile), as /etc/mkshrc is meant for all interactive shells

* Sources ~/.mkshrc if the user is using mksh, to compensate for the
  fact that mksh will not read ~/.mkshrc if ENV is set

* Sources ~/.shinit if the user is not using mksh

This also removes the shebang from /etc/profile, as the file is sourced,
not executed.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: add all buildinfo with INCLUDE_CONFIG</title>
<updated>2020-02-27T11:14:09Z</updated>
<author>
<name>Xu Wang</name>
</author>
<published>2020-02-08T23:04:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jogo/commit/?id=2299808c68cbaf2bbdde31073c5e887cd62874dc'/>
<id>urn:sha1:2299808c68cbaf2bbdde31073c5e887cd62874dc</id>
<content type='text'>
CONFIG_INCLUDE_CONFIG option is helpful for being able to rebuild the
exact same firmware as you see on a live OpenWRT instance, but it's
crucially missing feeds information, so we can't rebuild the exact same
package versions. This commit fixes this by adding the remaining feeds
(and version) buildinfo files to the image.

Signed-off-by: Xu Wang &lt;xwang1498@gmx.com&gt;
</content>
</entry>
<entry>
<title>base-files: diag: restore default trigger for 'boot' LED</title>
<updated>2020-02-24T22:27:50Z</updated>
<author>
<name>Piotr Dymacz</name>
</author>
<published>2020-01-31T14:22:54Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jogo/commit/?id=a422b171ac17edde296b48e2b3e9c9845d773609'/>
<id>urn:sha1:a422b171ac17edde296b48e2b3e9c9845d773609</id>
<content type='text'>
For devices without a dedicated 'diag' LED, we use sometimes one of
other LEDs for indicating at least 'boot', 'failsafe' and 'upgrade'
stages. In some cases, at the same time these LEDs have defined default
triggers in DTS using 'linux,default-trigger' property. Current 'diag'
setup removes the trigger and turns off 'boot' LED after bootup.

One of the examples of such device is TP-Link TL-WR841N v14 (ramips)
which uses 'wlan' LED with defined 'linux,default-trigger' for 'diag':

aliases {
        led-boot = &amp;led_wlan;
        led-failsafe = &amp;led_wlan;
        led-upgrade = &amp;led_wlan;
};

[...]

led_wlan: wlan {
        label = "tl-wr841n-v14:green:wlan";
        gpios = &lt;&amp;gpio1 9 GPIO_ACTIVE_LOW&gt;;
        linux,default-trigger = "phy0tpt";
};

This patch extends 'diag.sh' and 'leds.sh' scripts to make sure default
trigger defined in DTS is restored for 'diag' LED which isn't used for
indicating 'running' stage.

Acked-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
Signed-off-by: Piotr Dymacz &lt;pepe2k@gmail.com&gt;
</content>
</entry>
<entry>
<title>brcm47xx: rename target to bcm47xx</title>
<updated>2020-02-14T13:10:51Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2020-02-07T14:42:54Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jogo/commit/?id=8fe5ad5d3373cebed4fbc55a7b779721971ce427'/>
<id>urn:sha1:8fe5ad5d3373cebed4fbc55a7b779721971ce427</id>
<content type='text'>
This change makes the names of Broadcom targets consistent by using
the common notation based on SoC/CPU ID (which is used internally
anyway), bcmXXXX instead of brcmXXXX.
This is even used for target TITLE in make menuconfig already,
only the short target name used brcm so far.

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>base-files: remove some bashisms</title>
<updated>2020-01-26T20:51:24Z</updated>
<author>
<name>Sven Roederer</name>
</author>
<published>2019-12-25T17:39:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jogo/commit/?id=0fecc997f88b7f0a44c0f724d6de30083a14b908'/>
<id>urn:sha1:0fecc997f88b7f0a44c0f724d6de30083a14b908</id>
<content type='text'>
"[[" is a bash extension for test. As the ash-implementation is
not fully compatible we drop its usage.
Also change to "=" for simple test, which is sufficient. (see d6ac8ca76c04ed)

Signed-off-by: Sven Roederer &lt;devel-sven@geroedel.de&gt;
[split patch, removed shebang]
Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>base-files/functions.sh: use grep -q instead of []</title>
<updated>2020-01-17T23:24:06Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-01-17T22:36:29Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jogo/commit/?id=8df14c229c02a3b9329afc6e3ebf4f8aec5b59ed'/>
<id>urn:sha1:8df14c229c02a3b9329afc6e3ebf4f8aec5b59ed</id>
<content type='text'>
It's cleaner and faster as it does not need to do extra work.

Also removed $() to avoid executing the output. The shell can handle it.

https://github.com/koalaman/shellcheck/wiki/SC2143

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
[correct || to &amp;&amp; for one conversion]
Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>base-files/system.sh: remove $ in $(())</title>
<updated>2020-01-17T11:17:36Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-01-17T04:43:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jogo/commit/?id=d4009d7985500b0f4ec26dee9b91bdeb3ea16da5'/>
<id>urn:sha1:d4009d7985500b0f4ec26dee9b91bdeb3ea16da5</id>
<content type='text'>
Not needed.

https://github.com/koalaman/shellcheck/wiki/Sc2004

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files/functions.sh: use &amp;&amp; instead of -a</title>
<updated>2020-01-17T11:17:36Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-01-17T04:43:57Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jogo/commit/?id=fb56573dc4a5dda48953916b533a26af68b16f11'/>
<id>urn:sha1:fb56573dc4a5dda48953916b533a26af68b16f11</id>
<content type='text'>
-a is not well defined.

https://github.com/koalaman/shellcheck/wiki/SC2166

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files/functions.sh: remove useless cat</title>
<updated>2020-01-17T11:17:36Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-01-17T04:43:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jogo/commit/?id=b8e17aefea91632a70634aa2828a8b548c2b2567'/>
<id>urn:sha1:b8e17aefea91632a70634aa2828a8b548c2b2567</id>
<content type='text'>
The cut command can take a file as an input.

https://github.com/koalaman/shellcheck/wiki/SC2002

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files/functions.sh: don't use $var in $(())</title>
<updated>2020-01-17T11:17:35Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-01-17T04:43:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jogo/commit/?id=cba5fa0352869c117858bd56bebf3c1290865d99'/>
<id>urn:sha1:cba5fa0352869c117858bd56bebf3c1290865d99</id>
<content type='text'>
It's not needed. It can also lead to subtle bugs.

https://github.com/koalaman/shellcheck/wiki/Sc2004

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
</feed>
