[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#183334: libc6: /etc/init.d/devpts.sh : unary operator expected



Package: libc6
Version: 2.3.1-11
Severity: normal

During the boot I see a message complaining about a rcS.d script. The
error is 'unary operator expected' on line 17.
It appears that the error is in the /etc/init.d/devpts.sh file.

On my system, the following three lines 

devpts_avail=`grep -qci '[<[:space:]]devpts' /proc/filesystems || true`
devpts_mounted=`grep -qci '/dev/pts' /proc/mounts || true`
devfs_mounted=`grep -qci '[<[:space:]]/dev[>[:space:]].*devfs' /proc/mounts || true`

create three empty variables and then on line 17

if [ $devfs_mounted = 0 ] && [ $devpts_avail != 0 ]

fails as expected.

Christophe

-- System Information:
Debian Release: testing/unstable
Architecture: powerpc
Kernel: Linux philly 2.4.20-ben5 #1 Mon Feb 10 11:51:03 EST 2003 ppc
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro

Versions of packages libc6 depends on:
ii  libdb1-compat                 2.1.3-7    The Berkeley database routines [gl

-- no debconf information




Reply to: