File: preinst.in

package info (click to toggle)
base-files 4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 228 kB
  • ctags: 8
  • sloc: sh: 172; makefile: 68
file content (21 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -e
if dpkg --compare-versions "$2" lt-nl "2.1.6"; then
  if [ -d /floppy ]; then
    touch /etc/base-files.create-floppy
  fi
  if [ -d /cdrom ]; then
    touch /etc/base-files.create-cdrom
  fi
  if [ -d /initrd ]; then
    touch /etc/base-files.create-initrd
  fi
fi
if dpkg --compare-versions "$2" lt-nl "2.1.16"; then
  if [ -L /var/spool/mail ]; then
    find /var/spool/mail -printf "%l\n" > /etc/base-files.mailsymlink
  fi
fi
if dpkg --compare-versions "$2" lt-nl "2.2.6"; then
  echo "#VERSION#" > /etc/debian_version
fi