<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/kaloz/package/base-files, branch master</title>
<subtitle>Staging tree of Imre Kaloz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/kaloz/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/kaloz/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/kaloz/'/>
<updated>2018-02-12T23:01:44Z</updated>
<entry>
<title>base-files: don't evaluate block-device uevent</title>
<updated>2018-02-12T23:01:44Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2018-02-12T22:36:54Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/kaloz/commit/?id=267873ac9b9e5565f1f1550c931c413f5b5dda9d'/>
<id>urn:sha1:267873ac9b9e5565f1f1550c931c413f5b5dda9d</id>
<content type='text'>
Current code and also before commit da52dd0c83 was vulnerable to shell
injection using volume lables in the GPT partition table of block
devices. Given that partition names can be freely defined in GPT tables
we really shouldn't evaluate a string which is potentially crafted with
evil intentions. Hence rather use `export -n` to absorb the uevent's
variables into the environment.

Fixes commit da52dd0c83 (base-files: quote values when evaluating uevent)
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
[mschiffer@universe-factory.net: suggested export -n usage]
</content>
</entry>
<entry>
<title>base-files: quote values when evaluating uevent</title>
<updated>2018-02-11T15:42:01Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2018-02-02T00:57:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/kaloz/commit/?id=da52dd0c833d2ccf0be06838fc94d6f0865692c1'/>
<id>urn:sha1:da52dd0c833d2ccf0be06838fc94d6f0865692c1</id>
<content type='text'>
When sourcing /sys/class/block/*/uevent values have to be quoted as
they may contain spaces (e.g. in PARTNAME).
Fix this by pre-processing with sed before sourcing.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>treewide: combine VERSION_SED and VERSION_SED_SCRIPT</title>
<updated>2018-02-02T12:59:34Z</updated>
<author>
<name>Philip Prindeville</name>
</author>
<published>2018-01-25T00:33:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/kaloz/commit/?id=ff8e9a4ecbe70564c8649ea4ed69f28bec77dfa7'/>
<id>urn:sha1:ff8e9a4ecbe70564c8649ea4ed69f28bec77dfa7</id>
<content type='text'>
We don't need two versions of this.  The escaping quotes
is so that the sed commands aren't misinterpreted by shell;
it has nothing to do with the contents of the file, thus
one version is adequate.

Signed-off-by: Philip Prindeville &lt;philipp@redfish-solutions.com&gt;
</content>
</entry>
<entry>
<title>base-files: gpio switch: check if direction can be set</title>
<updated>2018-01-18T06:22:37Z</updated>
<author>
<name>Mathias Kresin</name>
</author>
<published>2018-01-15T00:23:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/kaloz/commit/?id=acafbac4b33a5273e6125cf2fcdf118f70cd23ec'/>
<id>urn:sha1:acafbac4b33a5273e6125cf2fcdf118f70cd23ec</id>
<content type='text'>
Obviously not all GPIO controller allow to change the direction. The issue
is around since the beginning of the script but only due to the recent
changes error messages are more visible.

Add a check if a change of the direction is supported by the GPIO
controller and fallback to setting only the value if not.

Fixes: FS#1271
Signed-off-by: Mathias Kresin &lt;dev@kresin.me&gt;
</content>
</entry>
<entry>
<title>base-files: gpio switch: fix inverted logic</title>
<updated>2018-01-18T06:22:36Z</updated>
<author>
<name>Mathias Kresin</name>
</author>
<published>2018-01-14T23:28:03Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/kaloz/commit/?id=f476c9a7458f9a1da876df02cce065f9cdeedd87'/>
<id>urn:sha1:f476c9a7458f9a1da876df02cce065f9cdeedd87</id>
<content type='text'>
GPIOs are exported as active high to the sysfs, hence the logic need to be
inverted.

Fixes: e66c47fb14f5 ("base-files: gpio switch: set output value with
       direction")
Signed-off-by: Mathias Kresin &lt;dev@kresin.me&gt;
</content>
</entry>
<entry>
<title>base-files: sysupgrade: correct command help text</title>
<updated>2018-01-12T15:06:04Z</updated>
<author>
<name>Kevin Darbyshire-Bryant</name>
</author>
<published>2018-01-12T11:23:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/kaloz/commit/?id=89233a8c490bfe439e6e4dd339b3b917a017fe0b'/>
<id>urn:sha1:89233a8c490bfe439e6e4dd339b3b917a017fe0b</id>
<content type='text'>
Commit 30f61a34b4cfd2c676fea4a919e089d6a77254e9 claimed to drop -d &amp; -p
options. In reality only -d was dropped.  Update command help text to
reflect that -d is no longer a supported option.

Fixes FS#1187

Signed-off-by: Kevin Darbyshire-Bryant &lt;ldir@darbyshire-bryant.me.uk&gt;
</content>
</entry>
<entry>
<title>linux-atm: add br2684ctl option to specify the netdev name</title>
<updated>2018-01-10T07:08:53Z</updated>
<author>
<name>Martin Schiller</name>
</author>
<published>2018-01-08T12:12:20Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/kaloz/commit/?id=1b1388f6404e6c3b0734de0a3dfbea63d69f677e'/>
<id>urn:sha1:1b1388f6404e6c3b0734de0a3dfbea63d69f677e</id>
<content type='text'>
Add the uci option nameprefix to specifc a target netdev name. Patch the
br2684ctl code to accept and set a netdev name via commandline parameters.

It allows to use the same netdev name for ATM and PTM lines on lantiq
xdsl hardware.

Signed-off-by: Martin Schiller &lt;ms@dev.tdt.de&gt;
Signed-off-by: Mathis Kresin &lt;dev@kresin.me&gt;
</content>
</entry>
<entry>
<title>base-files: gpio switch: set output value with direction</title>
<updated>2018-01-09T21:05:46Z</updated>
<author>
<name>Mathias Kresin</name>
</author>
<published>2017-12-21T00:06:42Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/kaloz/commit/?id=e66c47fb14f56be48366d1206b54724ab6dc2502'/>
<id>urn:sha1:e66c47fb14f56be48366d1206b54724ab6dc2502</id>
<content type='text'>
Use the "low" and "high" values to configure the GPIO as an output with
that initial value. It ensures that the gpio doesn't have a unwanted value
during the time the direction is set to ouput and the actual value is
applied.

We don't need to take care of the GPIO polarity for now, since our
exported GPIOs are always active low.

Signed-off-by: Mathias Kresin &lt;dev@kresin.me&gt;
</content>
</entry>
<entry>
<title>base-files: gpio_switch: start before boot state done is set</title>
<updated>2018-01-09T21:05:46Z</updated>
<author>
<name>Mathias Kresin</name>
</author>
<published>2017-12-21T08:44:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/kaloz/commit/?id=ff874b656beb87e3ad0f2cba3f325b1bf51a6b90'/>
<id>urn:sha1:ff874b656beb87e3ad0f2cba3f325b1bf51a6b90</id>
<content type='text'>
Start gpio_switch before the boot state is set to up/initialised/done.
This way the exported GPIOs are available at the time rc.local is started.

Signed-off-by: Mathias Kresin &lt;dev@kresin.me&gt;
</content>
</entry>
<entry>
<title>base-files: protect stop and reload actions with procd_lock</title>
<updated>2018-01-02T06:52:57Z</updated>
<author>
<name>Roman Yeryomin</name>
</author>
<published>2017-12-14T21:55:08Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/kaloz/commit/?id=8b477d09d1af95fd257d70b5329bd64f6f0de05b'/>
<id>urn:sha1:8b477d09d1af95fd257d70b5329bd64f6f0de05b</id>
<content type='text'>
Signed-off-by: Roman Yeryomin &lt;roman@advem.lv&gt;
Signed-off-by: Andrejs Hanins &lt;ahanins@gmail.com&gt;
</content>
</entry>
</feed>
