File: preinst

package info (click to toggle)
slib 3b1-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,060 kB
  • ctags: 2,432
  • sloc: lisp: 30,036; makefile: 1,152; sh: 372
file content (10 lines) | stat: -rwxr-xr-x 244 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

set -e

# Older versions of slib stored init files in a separate subdirectory;
# blow that away so that the symlink can be put in its place.

if [ "$1" = "upgrade" -a -d /usr/share/slib/init ]; then
   rm -rf /usr/share/slib/init
fi