[scponly] Minor bug in setup_chroot.sh
Helmut Schneider
jumper99 at gmx.de
Tue Dec 27 10:41:17 EST 2005
From: "Hideyuki KURASHINA" <rushani at bl.mmtr.or.jp>
>
>>>> On Tue, 27 Dec 2005 16:05:41 +0100, "Helmut Schneider"
>>>> <jumper99 at gmx.de> said:
>
>> Please change the following near line 74:
>>
>> -elif
>> +else
>
> I encountered same problem, plus test(1) does not understand "=="
> (at least FreeBSD).
I don't encounter this problem:
root at cms:/root# if [ `uname -s` == "FreeBSD" ]; then echo yes; else echo no;
fi
yes
root at cms:/root# if [ `uname -s` = "FreeBSD" ]; then echo yes; else echo no;
fi
yes
root at cms:/root# if [ `uname -s` == "OpenBSD" ]; then echo yes; else echo no;
fi
no
root at cms:/root# if [ `uname -s` = "OpenBSD" ]; then echo yes; else echo no;
fi
no
root at cms:/root# uname -a
FreeBSD cms 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005
root at x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386
root at cms:/root#
root at mx1:/root# if [ `uname -s` == "FreeBSD" ]; then echo yes; else echo no;
fi
no
root at mx1:/root# if [ `uname -s` = "FreeBSD" ]; then echo yes; else echo no;
fi
no
root at mx1:/root# if [ `uname -s` == "OpenBSD" ]; then echo yes; else echo no;
fi
yes
root at mx1:/root# if [ `uname -s` = "OpenBSD" ]; then echo yes; else echo no;
fi
yes
root at mx1:/root# uname -a
OpenBSD mx1 3.7 GENERIC#2 i386
root at mx1:/root#
root at proxy:/root# if [ `uname -s` == "FreeBSD" ]; then echo yes; else echo
no; fi
yes
root at proxy:/root# if [ `uname -s` = "FreeBSD" ]; then echo yes; else echo
no; fi
yes
root at proxy:/root# if [ `uname -s` == "OpenBSD" ]; then echo yes; else echo
no; fi
no
root at proxy:/root# if [ `uname -s` = "OpenBSD" ]; then echo yes; else echo
no; fi
no
root at proxy:/root# uname -a
FreeBSD proxy 5.3-RELEASE-p23 FreeBSD 5.3-RELEASE-p23 #4: Wed Oct 12
13:50:57 CEST 2005 root at proxy.v-pe.de:/usr/obj/usr/src/sys/GENERIC i386
root at proxy:/root#
Helmut
More information about the scponly
mailing list