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

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

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

# some other files in /etc that typically do not need to be tracked
ld.so.cache
mtab
.pwd.lock

EOF
fi