wok rev 703

x11vnc: --root support in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 02 08:25:48 2008 +0000 (2008-05-02)
parents cd39ea872fb3
children 7fe44f4e2cda
files x11vnc/receipt
line diff
     1.1 --- a/x11vnc/receipt	Thu May 01 21:03:01 2008 +0000
     1.2 +++ b/x11vnc/receipt	Fri May 02 08:25:48 2008 +0000
     1.3 @@ -32,12 +32,12 @@
     1.4  # Post install/remove commands for Tazpkg.
     1.5  post_install()
     1.6  {
     1.7 -	grep -q "^X11VNC" /etc/daemons.conf || cat >> /etc/daemons.conf <<EOT
     1.8 +	grep -q "^X11VNC" $1/etc/daemons.conf || cat >>$1/etc/daemons.conf <<EOT
     1.9  # VNC server options.
    1.10  X11VNC_OPTIONS="-rfbauth /etc/vnc.secret -forever -bg"
    1.11  
    1.12  EOT
    1.13 -	[ -f /etc/vnc.secret ] || echo -en '\x70\x05\xE3\x8B\x81\xB0\xB2\x1B' \
    1.14 -		 > /etc/vnc.secret # root
    1.15 +	[ -f $1/etc/vnc.secret ] || echo -en 'p\x05\xE3\x8B\x81\xB0\xB2\x1B' \
    1.16 +		 > $1/etc/vnc.secret # root
    1.17  }
    1.18