On Jan 21, Paul Brossier <[EMAIL PROTECTED]> wrote: > Looks like something is missing in the postinst script. Sure i could > check if /etc/udev/rules.d exists, but then no idea how to address a > later install of udev. Any advices? You just need to ship /etc/udev/rules.d/ in your package too and unconditionally create the symlink the first time the package is installed. Something like this:
postinst: case "$1" in configure) # only do this for the first install if [ -z "$2" ] || dpkg --compare-versions "$2" lt <CURRENT_VERSION>; then ln -s ../kino.rules /etc/udev/rules.d/z60_kino.rules fi ;; postrm: case "$1" in purge) [ -L /etc/udev/rules.d/z60_kino.rules ] && \ rm /etc/udev/rules.d/z60_kino.rules ;; -- ciao, Marco
signature.asc
Description: Digital signature