summarylogtreecommitdiffstats
path: root/panamfs-scan.install
blob: d5dfc121cea97e4ca5e9b4d0a1b69a1f6f04329d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_install() {
_INSTALL_PATH="/usr/local/share/panasonic/scanner"
    echo " start panasoniclpd"
if test -f /etc/init.d/pushscan-init
then
	/etc/init.d/pushscan-init start
fi

$_INSTALL_PATH/bin/PanasonicMFSlpd  > /dev/null 2>&1 &
if test "x$SUDO_USER" != "x"
then
	sudo -u $SUDO_USER $_INSTALL_PATH/bin/PanasonicMFSpushd  > /dev/null 2>&1 &
else
	if test "x$LOGNAME" != "x"
	then
		sudo -u $LOGNAME $_INSTALL_PATH/bin/PanasonicMFSpushd  > /dev/null 2>&1 &
	fi
fi


    }