summaryrefslogtreecommitdiff
path: root/init.d/40git-ignore
blob: f99f396b59fd06283ba7b50fb8630c4074bf44ea (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 >.gitignore <<EOF
*~

# 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