# HG changeset patch # User Pascal Bellard # Date 1209716748 0 # Node ID c01baa62a795bbccb0fce5879113fe2c04db5c3b # Parent cd39ea872fb3806ace45c44d8f046e7c160e0cc0 x11vnc: --root support in post_install diff -r cd39ea872fb3 -r c01baa62a795 x11vnc/receipt --- a/x11vnc/receipt Thu May 01 21:03:01 2008 +0000 +++ b/x11vnc/receipt Fri May 02 08:25:48 2008 +0000 @@ -32,12 +32,12 @@ # Post install/remove commands for Tazpkg. post_install() { - grep -q "^X11VNC" /etc/daemons.conf || cat >> /etc/daemons.conf <>$1/etc/daemons.conf < /etc/vnc.secret # root + [ -f $1/etc/vnc.secret ] || echo -en 'p\x05\xE3\x8B\x81\xB0\xB2\x1B' \ + > $1/etc/vnc.secret # root }