pkg_info(1): fix return value description for -e

2016-02-27 Thread Patrik Lundin
0-no_x11 $ echo $? 0 $ pkg_info -e 'vim-*-no_x12' $ echo $? 1 === Diff to man page below (removing a negation always feels good). -- Patrik Lundin Index: pkg_info.1 === RCS file: /cvs/src/usr.sbin/p

Re: new feature in pkg_add(1)

2016-06-21 Thread Patrik Lundin
Are there any plans to teach pkg_info -e about "%"? Is it even possible? The full ansible upstream discussion can be found here if anyone is interested: https://github.com/ansible/ansible-modules-extras/issues/97 Anyway, thanks for working on this, and thanks to landry@ for mentioning this was in the works :). -- Patrik Lundin

Re: new feature in pkg_add(1)

2016-06-22 Thread Patrik Lundin
On Wed, Jun 22, 2016 at 02:19:26PM +0200, Marc Espie wrote: > On Tue, Jun 21, 2016 at 10:43:07PM +0200, Patrik Lundin wrote: > > The reason for doing this is that it is much faster than just blindly > > trying to install a package, and does not hammer mirrors needlessly. > &g

autoinstall: Support DHCP option bootfile-name

2016-07-10 Thread Patrik Lundin
b/dhclient.leases.em0 === What do people think about this? I did ask about the lack of ability to configure the "file" field on the kea-users list as well, thread can be read here: https://lists.isc.org/pipermail/kea-users/2016-July/000435.html -- Patrik Lundin Index: clparse.c ==

Re: new feature in pkg_add(1)

2016-07-10 Thread Patrik Lundin
On Thu, Jun 23, 2016 at 06:44:19AM +0200, Patrik Lundin wrote: > > I will play around with this and see what I can come up with, thanks! > For any interested parties there is now support for the pkg_add branch-syntax in the openbsd_pkg package management module in ansible upstre

Re: crypto softraid and keydisk on same harddrive

2015-07-26 Thread Patrik Lundin
atforms that > support softraid boot. I'll attempt to get this done over the next couple of > weeks. > Any progress on this? I would be happy to help you test diffs. -- Patrik Lundin

uftdi: Attach Telldus TellStick Duo

2015-12-21 Thread Patrik Lundin
ch makes it use 9600 baud instead of 4800): === ./rfcmd /dev/cuaU0 NEXA A 1 1 ./rfcmd /dev/cuaU0 NEXA A 1 0 === While not strictly related to this diff, maby the line "MetaGeek tagged products" should be replaced with "Mecanique tagged products" in usb

Re: uftdi: Attach Telldus TellStick Duo

2015-12-21 Thread Patrik Lundin
On Mon, Dec 21, 2015 at 02:12:41PM +0100, Patrik Lundin wrote: > > Currently it is only attached as an ugen device: > === > ugen0 at uhub1 port 2 "Telldus TellStick Duo" rev 2.00/6.00 addr 2 > === > > The diff below makes it attach as an uftdi device: > === >

Re: uftdi: Attach Telldus TellStick Duo

2015-12-21 Thread Patrik Lundin
On Mon, Dec 21, 2015 at 05:40:14PM +0100, Patrik Lundin wrote: > > This was pretty discouraging: it appears the supported program works > better when the kernel knows less about the device. It uses libftdi, > which I guess is supposed to contact the generic device directly. > >

rcctl(8): special services and flags

2014-10-09 Thread Patrik Lundin
to duplicate the _special_services variable in the module. A possible solution to this would be to relax the flags check in rcctl, so it only cares if there are actual flags supplied. See diff below for a suggestion on how to deal with this which seems to work. If I am going about this the wron

Re: rcctl(8): special services and flags

2014-10-09 Thread Patrik Lundin
ld be if the user started out with supplying "-s" to ntpd and then changes his mind and removes the flag. The idea is to then call rcctl with an empty "flags" argument to get the default set of flags instead. It was my understanding from the man page that this was the approriate way to do it, am I mistaken? Regards, Patrik Lundin

Re: rcctl(8): special services and flags

2014-10-09 Thread Patrik Lundin
ways: --- # rcctl enable pf flags # rcctl disable pf flags --- I don't feel strongly about this though, either way is fine for my needs. > > The second half is ok schwarze@ if Antoine wants to commit, > though i'd slightly prefer the simplified version given below. > Looks good to me :). Regards, Patrik Lundin

rcctl(8): Fetch default service flags

2014-10-09 Thread Patrik Lundin
ags(). Being able to call this via some argument to rcctl would solve my problem. I am leaving out a diff because I have no idea what a good name for such an argument would be, but just calling "svc_default_enabled_flags $svc" in the script seems to return what I need. Regards, Patrik Lundin

Re: rcctl(8): Fetch default service flags

2014-10-09 Thread Patrik Lundin
re _going_ to change something or not. The user may for example run ansible in --check mode where it should only report if it is about to change something or not. Even when not running in --check mode the module needs to report if something was changed or not. Regards, Patrik Lundin

Re: rcctl(8): Fetch default service flags

2014-10-09 Thread Patrik Lundin
omething "forever" :). To solve this I need the default flags to compare to the output of 'status'. Regards, Patrik Lundin

Re: rcctl(8): Fetch default service flags

2014-10-09 Thread Patrik Lundin
On Thu, Oct 09, 2014 at 11:51:50PM +0200, Patrik Lundin wrote: > > To solve this I need the default flags to compare to the output of > 'status'. > ... I guess another solution could be if 'status' only showed flags that differed from the default. Regards, Patrik Lundin

Re: rcctl(8): Fetch default service flags

2014-10-10 Thread Patrik Lundin
This only means I will need to replicate svc_default_enabled_flags() in my module. I would rather store as much logic as possible in rcctl itself to keep the overhead/upkeep low, but you can't get everything i guess :). Regards, Patrik Lundin

Re: rcctl(8): Fetch default service flags

2014-10-10 Thread Patrik Lundin
default. Not passing any arguments does not mean "do not modify any flags", it means "make sure we have the default flags". Because of this I will need to check if the current set of flags are the default or not. Hope this makes some sense :). Regards, Patrik Lundin

Re: rcctl(8): Fetch default service flags

2014-10-10 Thread Patrik Lundin
e all systems are configured the way they are supposed to. This seems to contradict the beauty of defaults. This is probably sliding into bikeshedding territory, so I will leave it at that (would happily discuss it offlist though) :). Regards, Patrik Lundin

Re: ksh version lies

2015-03-12 Thread Patrik Lundin
blem? I realize this is possibly not a discussion well suited for tech@, but since I recall this discussion mentioning the removal of $KSH_VERSION it seemed close enough. Sorry for the noise otherwise. -- Patrik Lundin

Re: ksh version lies

2015-03-12 Thread Patrik Lundin
On Fri, Mar 13, 2015 at 10:48:56AM +0900, Pascal Stumpf wrote: > On Thu, 12 Mar 2015 15:25:48 + (UTC), Christian Weisgerber wrote: > > On 2015-03-12, Patrik Lundin wrote: > > > > >=== > > > elif [ -n "$KSH_VERSION" ]; then

Re: ksh version lies

2015-03-15 Thread Patrik Lundin
"Mozilla/5.0" > user agent issue... > Thank you for this information, a pull request against the ansible script is available here: https://github.com/ansible/ansible/pull/10466 -- Patrik Lundin

Re: crypto softraid and keydisk on same harddrive

2015-04-24 Thread Patrik Lundin
ot; > -- Mary Ritter Beard Any developer feel like looking at merging this diff? It seems jsing is busy with other work. My interest in this is that it is helpful for OpenBSD machines used at Dreamhack (http://dreamhack.se) to quickly decommision them when the festival is over. The original thread can be found here: http://marc.info/?l=openbsd-misc&m=141435482820277&w=2 -- Patrik Lundin

Re: crypto softraid and keydisk on same harddrive

2015-04-25 Thread Patrik Lundin
the owner" in a matter of minutes. I fully understand the data is still readable by anyone who has managed to get hold of the keys. It is the tradeoff of not having time for even a single pass of dd of the main partition. -- Patrik Lundin

Question regarding (portable) OpenNTPD adjfreq

2017-03-08 Thread Patrik Lundin
92 poll([{fd=5, events=POLLIN}], 1, 4294967295 === I initially asked bcook@ about this since it was spotted on -portable and he suggested I bring it up here. -- Patrik Lundin

Re: Question regarding (portable) OpenNTPD adjfreq

2017-03-08 Thread Patrik Lundin
Ugh, sorry about the garbled layout of the previous message. I should not attempt to do these write ups on the road away from mutt :(. -- Patrik Lundin

Preferred TERM for pkg_add

2023-01-04 Thread Patrik Lundin
ld make openbsd_pkg always set one of them for the different pkg_* tools. Regards, Patrik Lundin

Re: Preferred TERM for pkg_add

2023-01-17 Thread Patrik Lundin
5)). So just going with the "least capable" dumb seems like a good start. Regards, Patrik Lundin

Re: NSD 4

2013-11-25 Thread Patrik Lundin
Permission denied I solved that with (again based on my personal config): # chown _nsd /var/nsd/zones/slave I have not tested this a lot, but at least dig @127.0.0.1 works for the example.com zone. Just thought I should throw this info out there, I think it is great you are doing the work to get NSD 4 in base. Thanks a lot :). Regards, Patrik Lundin

slowcgi(8): small wording tweak

2014-01-19 Thread Patrik Lundin
Hello, I just read slowcgi(8) and one of the sentences read a bit strange to me. Anyone agree? Regards, Patrik Lundin Index: slowcgi.8 === RCS file: /cvs/src/usr.sbin/slowcgi/slowcgi.8,v retrieving revision 1.5 diff -u -p -u -r1.5

autoinstall(8): remove "System hostname" from example

2014-04-26 Thread Patrik Lundin
ple, it is also primed via the dhcpd.conf host example. Just setting it in dhcpd.conf will lead to one less place to keep track of while keeping the response file less host specific. Does this sound reasonable? Regards, Patrik Lundin Index: aut

Re: autoinstall(8): remove "System hostname" from example

2014-04-26 Thread Patrik Lundin
# Prime hostname with host-name option 2119 hostname "$(sed -E '/^ *option host-name "(.*)";$/!d;s//\1/;q' $_lf)" I have installed a box with a recent snapshot and the resulting machine will be named after what is set in dhcpd.conf. Regards, Patrik Lundin

md5: returns 0 when a file does not exist

2013-03-28 Thread Patrik Lundin
this case. I have attempted to write a patch that changes this behaviour. My limited testing has been successful at least, see diff below. Regards, Patrik Lundin Index: md5.c === RCS file: /cvs/src/bin/md5/md5.c,v retrieving revision

relayd(8) 'disable/enable table' support for relays

2010-11-16 Thread Patrik Lundin
break; case IMSG_HOST_STATUS: if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(st)) fatalx("relay_dispatch_pfe: invalid request"); You will find the complete patch attached to this message for easy refere

Re: relayd(8) 'disable/enable table' support for relays

2010-11-16 Thread Patrik Lundin
On Tue, Nov 16, 2010 at 01:48:51PM +0100, Patrik Lundin wrote: > > You will find the complete patch attached to this message for easy reference. > [...] > > [demime 1.01d removed an attachment of type text/x-diff] > I was hoping the attachment would not get eaten when added i

Re: relayd(8) 'disable/enable table' support for relays

2010-11-17 Thread Patrik Lundin
le:" followed by what looks like crypto junk. Just thought I would throw it out there while it was still fresh in my head. Regards, Patrik Lundin