Samsung Unified Linux Driver Repository Forum

SULDR => Scanner Server (Scan to PC) => Topic started by: George82 on January 21, 2014, 16:53:12

Title: installation suld-scantopc-gui
Post by: George82 on January 21, 2014, 16:53:12
I've got some problems installing the suld-scantopc-gui on ubuntu 13.10 and 14.04
I've got this message

Setting up suld-scantopc (0.4.5-3) ...
 * Starting Samsung Scanner Server samsungScannerServer                  [ OK ]
Processing triggers for ureadahead (0.100.0-16) ...
Setting up suld-scantopc-gui (0.4.5-1) ...
invoke-rc.d: syntax error: missing required parameter
dpkg: error processing package suld-scantopc-gui (--configure):
 subprocess installed post-installation script returned error exit status 103
Errors were encountered while processing:
 suld-scantopc-gui


I tried to solve the problem by editing postinst script where i changed from "$2" to "$1". After that the installation worked


if [ -x "/etc/init.d/samsungScannerServer" ]; then
        if [ -n "$2" ]; then
                _dh_action=stop
        fi
        invoke-rc.d samsungScannerServer $_dh_action || exit $?
fi

to

if [ -x "/etc/init.d/samsungScannerServer" ]; then
        if [ -n "$1" ]; then
                _dh_action=stop
        fi
        invoke-rc.d samsungScannerServer $_dh_action || exit $?
fi
Title: Re: installation suld-scantopc-gui
Post by: bchemnet on January 26, 2014, 10:02:09
Thanks.  Now that I'm looking at this, I think actually the whole inner "if" is unnecessary.  I will put out a patched version in a few days.