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

Re: re-asked papersize



Adrian Bunk writes:
> But I'm wondering why this happens because the postinst of libpaperg
> contains the following to avoid exactly this problem:
> 
> 
>   if [ ! -e /etc/papersize ]; then
>     if db_get libpaperg/defaultpaper; then
>      PAPER="$RET"
>     else
>      PAPER="letter"
>     fi
>         /usr/sbin/paperconfig -p $PAPER
>   fi
> 
> 
> Which shell is your /bin/sh?

It appears to be ash, though I don't currently recall setting it to that:

    sfere$ ls -l /bin/sh
    lrwxrwxrwx    1 root     root            3 Nov 20 22:19 /bin/sh -> ash*

The test appears to work properly when invoked manually, too:

    sfere$ /bin/sh -c '[ ! -e /etc/papersize ]; echo $?'
    1

ttfn/rjk



Reply to: