# x11vnc - postinst
#!/bin/sh
set -e
if true && type update-rc.d >/dev/null 2>/dev/null; then
	if [ -n "$D" ]; then
		OPT="-f -r $D"
	else
		OPT="-f -s"
	fi
	update-rc.d $OPT x11vnc start 90  . stop 90 0 1 6 .
fi

if [ -n "$D" ]; then
    $INTERCEPT_DIR/postinst_intercept delay_to_first_boot x11vnc mlprefix=
    exit 0
fi
#!/bin/sh -e
[ ! -e /etc/x11vnc.passwd ] && x11vnc -storepasswd 42000 /etc/x11vnc.passwd