File: hibernate.prerm

package info (click to toggle)
hibernate 1.99-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 780 kB
  • ctags: 61
  • sloc: sh: 2,194; makefile: 58
file content (22 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh -eu
#
# Pre-removal hook script for hibernate
#
# Originally written by Cameron Patrick, 2004 and released to the public domain.
# Modified by martin f. krafft.
#
# Copyright © martin f. krafft <madduck@debian.org>
# Released under the terms of the Artistic Licence 2.0
#
# $Id$
#

if [ "${1:-}" = remove ]; then
  rmdir --ignore-fail-on-non-empty --parents \
    /usr/local/share/hibernate/scriptlets.d 2>/dev/null || :
fi

# See #369953
set +u
#DEBHELPER#
set -u