Package usbip: Scripts

Post install

1
2
3
4
5
6
 
if [ $1 -eq 1 ] && sd_booted; then 
    SYSTEMD_HELPER=/lib/systemd/systemd-update-helper; 
    # Initial installation 
    $SYSTEMD_HELPER install-system-units usbip-client.service || : 
fi
Post uninstall

1
2
3
4
5
6
 
if [ $1 -ge 1 ] && sd_booted; then 
    SYSTEMD_HELPER=/lib/systemd/systemd-update-helper; 
    # Package upgrade, not uninstall 
    $SYSTEMD_HELPER mark-restart-system-units usbip-client.service || : 
fi
Pre uninstall

1
2
3
4
5
6
 
if [ $1 -eq 0 ] && sd_booted; then 
    SYSTEMD_HELPER=/lib/systemd/systemd-update-helper; 
    # Package removal, not upgrade 
    $SYSTEMD_HELPER remove-system-units usbip-client.service || : 
fi