File: preinst

package info (click to toggle)
slib 3b1-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,032 kB
  • ctags: 2,236
  • sloc: lisp: 29,164; makefile: 438; sh: 279
file content (9 lines) | stat: -rw-r--r-- 243 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/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