summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'init.d')
-rwxr-xr-xinit.d/50git-ignore9
1 files changed, 6 insertions, 3 deletions
diff --git a/init.d/50git-ignore b/init.d/50git-ignore
index f931592..de58ed5 100755
--- a/init.d/50git-ignore
+++ b/init.d/50git-ignore
@@ -1,11 +1,14 @@
#!/bin/sh
set -e
if [ ! -e .gitignore ]; then
- cat >.gitignore <<EOF
-*~
-
+ if [ "$LOWLEVEL_PACKAGE_MANAGER" = dpkg ]; then
+ cat >.gitignore <<EOF
# new and old versions of conffiles, stored by dpkg
*.dpkg-*
+EOF
+ fi
+ cat >>.gitignore <<EOF
+*~
# mount(8) records system state here, no need to keep these in git
blkid.tab