]>
Commit | Line | Data |
---|---|---|
2d18d44e AL |
1 | #! /bin/sh |
2 | ||
3 | # apt postinst, based liberally on James Troup's gpm postinst | |
4 | # Copyright (C) 1998, Ben Gertzfield <che@debian.org> | |
5 | ||
6 | # This program is free software; you can redistribute it and/or modify | |
7 | # it under the terms of the GNU General Public License as published by | |
8 | # the Free Software Foundation; either version 2 of the License, or | |
9 | # (at your option) any later version. | |
10 | ||
11 | set -e | |
12 | ||
13 | create_apt_conf () | |
14 | { | |
9516b565 | 15 | cp /usr/share/doc/apt/examples/sources.list /etc/apt/sources.list |
2d18d44e AL |
16 | } |
17 | ||
18 | check_apt_conf () | |
19 | { | |
20 | true | |
21 | # this is for future expansion | |
22 | } | |
23 | ||
03321762 AL |
24 | #DEBHELPER# |
25 | ||
2d18d44e AL |
26 | case "$1" in |
27 | configure) | |
28 | # | |
29 | # If there is no /etc/apt/sources.list then create a default | |
30 | # | |
31 | if [ ! -f /etc/apt/sources.list ]; then | |
32 | create_apt_conf | |
2d18d44e AL |
33 | else |
34 | check_apt_conf | |
35 | fi | |
2d18d44e | 36 | esac |