File: hibernate.prerm

package info (click to toggle)
hibernate 1.94-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 492 kB
  • ctags: 53
  • sloc: sh: 1,203; makefile: 59
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