Re: Conditional sysupgrade

2019-04-29 Thread Marco Bonetti
On 04/29, Stuart Henderson wrote: > On 2019/04/29 00:21, Marco Bonetti wrote: > > > > +++ usr.sbin/sysupgrade/sysupgrade.sh 27 Apr 2019 11:54:48 - > > > > @@ -110,7 +110,19 @@ fi > > > > > > > > cd ${SETSDIR} > > > > >

Re: Conditional sysupgrade

2019-04-28 Thread Marco Bonetti
On 04/27, Christian Weisgerber wrote: > On 2019-04-27, Marco Bonetti wrote: > > > +unpriv -f SHA256.sig.tmp ftp -Vmo SHA256.sig.tmp ${URL}SHA256.sig > > +TMP_SHA=$(sha256 -q SHA256.sig.tmp) > > + > > +unpriv touch SHA256.sig > > This fails if SHA256.sig doesn

Re: Conditional sysupgrade

2019-04-28 Thread Marco Bonetti
On 04/27, Andreas Kusalananda K?h?ri wrote: > On Sat, Apr 27, 2019 at 01:23:20PM +0100, Marco Bonetti wrote: > > Hello folks, > > > > First of all congratulations on a new OpenBSD release and thanks for > > introducing sysupgrade in -current. > > > >

Re: Conditional sysupgrade

2019-04-28 Thread Marco Bonetti
On 04/27, Florian Obser wrote: > On Sat, Apr 27, 2019 at 01:23:20PM +0100, Marco Bonetti wrote: > > Hello folks, > > > > First of all congratulations on a new OpenBSD release and thanks for > > introducing sysupgrade in -current. > > > > Before sysu

Conditional sysupgrade

2019-04-27 Thread Marco Bonetti
Hello folks, First of all congratulations on a new OpenBSD release and thanks for introducing sysupgrade in -current. Before sysupgrade, I was using a custom script for achieving the same result with only difference that I was checking if a new snapshot (or release) is available by looking at BUI

Re: sysctl machdep.lidaction=suspend

2017-08-20 Thread Marco Bonetti
On 07/29, Martin Natano wrote: > On Sat, Jul 29, 2017 at 02:19:50PM +0200, Martin Natano wrote: > > On Sat, Jul 29, 2017 at 02:03:22PM +0200, Mark Kettenis wrote: > > > > > > I don't think we want to add string parsing like this in the kernel. > > > Maybe the sysctl(8) frontend should do the mappi

Re: sysctl machdep.lidaction=suspend

2017-07-30 Thread Marco Bonetti
On 07/29, Martin Natano wrote: > Words are more descriptive than numbers. Let's use them! > > This diff removes > > sysctl machdep.lidaction=0 > sysctl machdep.lidaction=1 > sysctl machdep.lidaction=2 > > in favor of the more descriptive > > sysctl machdep.lidaction=none

Re: Add machdep.lidaction=3 - powerdown laptop upon lid closing

2017-07-30 Thread Marco Bonetti
On 07/27, Bryan Steele wrote: > On Fri, Jul 28, 2017 at 12:09:17AM +0100, Marco Bonetti wrote: > > It looks like spaces and tabs got mangled, I'm resending the diff in-line in > > this email. > > > > Any other comments / OKs ? > >

Re: Add machdep.lidaction=3 - powerdown laptop upon lid closing

2017-07-27 Thread Marco Bonetti
It looks like spaces and tabs got mangled, I'm resending the diff in-line in this email. Any other comments / OKs ? Index: etc/etc.amd64/sysctl.conf === RCS file: /cvs/src/etc/etc.amd64/sysctl.conf,v retrieving revision 1.7 diff -u -

Re: Add machdep.lidaction=3 - powerdown laptop upon lid closing

2017-07-20 Thread Marco Bonetti
alues are applied at boot before setting securelevel. in your use case you are probably already using machdep.lidaction=0 otherwise you can't close the lid once opened? -- Marco Bonetti

Re: Add machdep.lidaction=3 - powerdown laptop upon lid closing

2017-07-20 Thread Marco Bonetti
- On Jul 17, 2017, at 7:19 AM, Jason McIntyre j...@kerhand.co.uk wrote: > On Mon, Jul 17, 2017 at 02:08:31AM +0200, Marco Bonetti wrote: >> Hello tech@, >> This is a diff that implements a new value (3) for machdep.lidaction to >> allow a >> laptop powerdown w

Add machdep.lidaction=3 - powerdown laptop upon lid closing

2017-07-16 Thread Marco Bonetti
fy_type == 0x80) +powerdown: acpi_addtask(sc->sc_acpi, acpi_powerdown_task, sc->sc_acpi, 0); break; -- Marco Bonetti