Split nut package into nut-client and nut-server, keep nut package as metapackage
This commit is contained in:
parent
1106c880a1
commit
910934027d
18 changed files with 57 additions and 28 deletions
42
debian/nut-server.prerm
vendored
Normal file
42
debian/nut-server.prerm
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# the DEBHELPER token is purposely not used
|
||||
# because we don't want the daemon to be
|
||||
# stopped during an upgrade
|
||||
|
||||
case "$1" in
|
||||
|
||||
remove)
|
||||
# nut-usb specifics
|
||||
[ -f /etc/hotplug/usb/libhid.usermap ] && rm -f /etc/hotplug/usb/libhid.usermap
|
||||
[ -f /etc/hotplug/usb/libhidups ] && rm -f /etc/hotplug/usb/libhidups
|
||||
|
||||
[ -L /usr/doc/nut ] && rm -f /usr/doc/nut
|
||||
# do stop the daemon on remove
|
||||
invoke-rc.d nut stop && sleep 1
|
||||
[ -d /var/run/nut ] && rm -f /var/run/nut/*.pid
|
||||
;;
|
||||
|
||||
upgrade)
|
||||
[ -L /usr/doc/nut ] && rm -f /usr/doc/nut
|
||||
# do not stop the daemon on upgrade
|
||||
;;
|
||||
|
||||
failed-upgrade)
|
||||
# do nothing
|
||||
;;
|
||||
|
||||
deconfigure)
|
||||
# do nothing
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "$0: incorrect arguments: $*" >&2
|
||||
exit 1
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue