Re: Scripting for /bin/ksh

2021-08-04 Thread RVP
On Wed, 4 Aug 2021, Todd Gruhn wrote: My new problem is testing user rank/id. I want to see if the user is "root" if (user != root), then print message and die. if [ $(id -u) -ne 0 ] then>&2 echo "${0##*/}: you are not superuser" exit 1 fi -RVP

Re: USB prob

2021-08-04 Thread Todd Gruhn
Thanks I dropped to boot ; I did not think of the "xhci" part... On Wed, Aug 4, 2021 at 6:07 PM Chavdar Ivanov wrote: > > On Wed, 4 Aug 2021 at 22:47, Todd Gruhn wrote: > > > > I booted NetBSD and I got an error regarding uhub1 that repeats > > ad-infinitum. > > I rebooted several times --

Re: 9.2: pkgin packages do not register pkg_info

2021-08-04 Thread Greg Troxel
Riccardo Mottola writes: > Hi Greg, > > Greg Troxel wrote: >> I don't either, but my advice is to *always* set PKG_DBDIR explicitly in >> btoh mk.conf and pkg_install.conf. Check if you have the split brain >> situation, or something else: >> >> https://pkgsrc.org/pkgdb-change/ > > oh, I fear

Re: 9.2: pkgin packages do not register pkg_info

2021-08-04 Thread Riccardo Mottola
Hi. replying to myself Riccardo Mottola wrote: > I fear this "dirs" come from this step: > > In /var/db/pkg.refcount > tar cf - . | (cd /usr/pkg/pkgdb && tar xfv -) > > since pkg.refcount contained "dirs" > > ls /usr/pkg/pkgdb/dirs/ > etc usr var > > is it out of place? the proper command

Re: USB prob

2021-08-04 Thread Chavdar Ivanov
On Wed, 4 Aug 2021 at 22:47, Todd Gruhn wrote: > > I booted NetBSD and I got an error regarding uhub1 that repeats ad-infinitum. > I rebooted several times -- same thing. > > I booted NetBSD-HEAD ISO-image (ver. 9.99.85) same thing. > > My first Q is: How do I make the boot cycle proceed and

Re: Scripting for /bin/ksh

2021-08-04 Thread Chavdar Ivanov
On Wed, 4 Aug 2021 at 22:30, Todd Gruhn wrote: > > Thanks for the link, Lewis. I have never seen this site. I DID find a > book in PDF format > regarding /bin/ksh programming. > > My new problem is testing user rank/id. > > I want to see if the user is "root" > > if (user != root), then print

USB prob

2021-08-04 Thread Todd Gruhn
I booted NetBSD and I got an error regarding uhub1 that repeats ad-infinitum. I rebooted several times -- same thing. I booted NetBSD-HEAD ISO-image (ver. 9.99.85) same thing. My first Q is: How do I make the boot cycle proceed and finish? Second: How do I diagnose it?

Re: Scripting for /bin/ksh

2021-08-04 Thread Todd Gruhn
Thanks for the link, Lewis. I have never seen this site. I DID find a book in PDF format regarding /bin/ksh programming. My new problem is testing user rank/id. I want to see if the user is "root" if (user != root), then print message and die. This is easy in PERL; I have not done it in

Re: Scripting for /bin/ksh

2021-08-04 Thread J. Lewis Muir
On 08/02, Chavdar Ivanov wrote: > On Mon, 2 Aug 2021 at 14:16, Todd Gruhn wrote: > > > > Thanks for the code Matt. > > I will try this. > > By 'execute' I mean generate > > ${cmd} > > then execute/do whatever ${cmd} turns out to be. > > Depending on the contents of cmd, you might have to use >

Re: 9.2: pkgin packages do not register pkg_info

2021-08-04 Thread Riccardo Mottola
Hi Greg, Greg Troxel wrote: > I don't either, but my advice is to *always* set PKG_DBDIR explicitly in > btoh mk.conf and pkg_install.conf. Check if you have the split brain > situation, or something else: > > https://pkgsrc.org/pkgdb-change/ oh, I fear I have split. But, permit me, this is

Re: 9.2: pkgin packages do not register pkg_info

2021-08-04 Thread Riccardo Mottola
Hi Greg Greg Troxel wrote: > I don't either, but my advice is to *always* set PKG_DBDIR explicitly in > btoh mk.conf and pkg_install.conf. Check if you have the split brain > situation, or something else: > > https://pkgsrc.org/pkgdb-change/ I tried to perform the split migration according to