summaryrefslogtreecommitdiff
path: root/etc-init.d/40git-ignore
blob: 846c32dbd39a4f5f1f2bf3ae603f4e80b6c16a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -e
if [ ! -e .gitignore ]; then
	cat <<EOF >.gitignore
*~

# new and old versions of conffiles, stored by dpkg
*.dpkg-new
*.dpkg-old

# mount(8) records system state here, no need to keep these in git
blkid.tab(|.old)
mtab
EOF
fi