On 03/06/2014 08:49, Stefan Hellermann wrote: > Thanks for applying this in r40909. Sadly the commit is not > complete, the file needs to be mode 755. > > Signed-off-by: Stefan Hellermann <ste...@the2masters.de > <mailto:ste...@the2masters.de>> > > diff --git a/package/base-files/files/etc/rc.button/power > b/package/base-files/files/etc/rc.button/power old mode 100644 new > mode 100755 > >
how very bizarre .. i manually fixed the perms up in the patch before doing git am. i just checked the patch and its indeed there. i wonder why git am did not pick this up ... fixed in r40993, thanks for testing > > > > 2014-05-15 12:27 GMT+02:00 Stefan Hellermann > <ste...@the2masters.de <mailto:ste...@the2masters.de>>: > > Since svn rev [38557] we support power buttons, for example the > ACPI power button on x86 machines. Add a simple shutdown script to > /etc/rc.button, to gracefully shutdown the machine after the power > button is pressed. > > Tested on x86 and x86_64 in a kvm virtual machine. > > Signed-off-by: Stefan Hellermann <ste...@the2masters.de > <mailto:ste...@the2masters.de>> --- > package/base-files/files/etc/rc.button/power | 5 +++++ 1 file > changed, 5 insertions(+) create mode 100644 > package/base-files/files/etc/rc.button/power > > diff --git a/package/base-files/files/etc/rc.button/power > b/package/base-files/files/etc/rc.button/power new file mode > 100644 index 0000000..0cb74b9 --- /dev/null +++ > b/package/base-files/files/etc/rc.button/power @@ -0,0 +1,5 @@ > +#!/bin/sh + +[ "${ACTION}" = "released" ] || exit 0 + +exec > /sbin/poweroff -- 1.9.1 > > _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel