/[public]/qemu-start/trunk/debian/preinst
ViewVC logotype

Contents of /qemu-start/trunk/debian/preinst

Parent Directory Parent Directory | Revision Log Revision Log


Revision 290 - (show annotations)
Sat Feb 11 16:27:15 2006 UTC (18 years, 1 month ago) by frodo
File size: 979 byte(s)
Imported sources

1 #! /bin/sh
2 # preinst script for qemu-start
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 # summary of how this script can be called:
9 # * <new-preinst> `install'
10 # * <new-preinst> `install' <old-version>
11 # * <new-preinst> `upgrade' <old-version>
12 # * <old-preinst> `abort-upgrade' <new-version>
13 #
14 # for details, see http://www.debian.org/doc/debian-policy/ or
15 # the debian-policy package
16
17
18 case "$1" in
19 install|upgrade)
20 if ! getent group emulator > /dev/null; then
21 addgroup --system --quiet emulator
22 fi
23 if ! getent group qemu > /dev/null; then
24 addgroup --system --quiet qemu
25 fi
26 if ! getent passwd qemu > /dev/null; then
27 adduser --system --ingroup qemu --gecos "Qemu user" --quiet qemu
28 fi
29 ;;
30
31 abort-upgrade)
32 ;;
33
34 *)
35 echo "preinst called with unknown argument \`$1'" >&2
36 exit 1
37 ;;
38 esac
39
40 # dh_installdeb will replace this with shell code automatically
41 # generated by other debhelper scripts.
42
43 #DEBHELPER#
44
45 exit 0
46
47

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26