thanks for the quick reply Andreas will try it later tonight when i'm back at the laptop. shadrock
On Sat, 24 Jul 2021 at 20:36, Andreas Kusalananda Kähäri < andreas.kah...@abc.se> wrote: > On Sat, Jul 24, 2021 at 07:11:30PM +0100, shadrock uhuru wrote: > > Hi all > > i am running openbsd snapshot and have sysupgraded often without a > single > > hitch, > > on this occasion i have encountered the following error after the > > sysupgrade and the laptop tried to reboot > > i entered sh and had a look at /etc/rc with ed, > > the if is matched with a fi. > > so i need suggestions where to turn to next > > --------------------- > > > > reordeing libraries: done > > /etc/rc[464]: syntax error: `if' unmatched > > enter pathname of shell or return for sh: > > > > > > laptop# ed /etc/rc > > 16304 > > 464 > > if (($(ifconfig | grep -c ': flags=.*<.*AUTOCONF.*> mtu) == 0)); then > > count=0 > > while ((count++ < 20 && $(route -n show | grep -c '^default ') == > 0)); > > do > > sleep .5 > > done > > fi > > > > --------------------------- > > > > any help would be appreciated. > > shadrock > > I ran into this too. It's fixed in the most recent snapshot(s). Note > the missing single quote after "mtu". Fix with > > 464s/mtu/&' > w > > in ed. > > Regards, > > -- > Andreas (Kusalananda) Kähäri > SciLifeLab, NBIS, ICM > Uppsala University, Sweden > > . >