-
Notifications
You must be signed in to change notification settings - Fork 0
/
etcdiff
executable file
·90 lines (88 loc) · 3.07 KB
/
etcdiff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/sh
set -eu
BROOT="${2:-/}"
ROOT="${1:-$PWD/root}"
( cd "$BROOT/etc"
find \! -type d \
\! -path './adjtime' \
\! -path './ca-certificates.conf' \
\! -path './clang/gentoo-gcc-install.cfg' \
\! -path './conf.d/net' \
\! -path './conf.d/pydoc-*' \
\! -path './config-archive/*' \
\! -path './csh.env' \
\! -path './cups/*' \
\! -path './default/grub' \
\! -path './dhcpcd.exit-hook' \
\! -path './dracut.conf' \
\! -path './env.d/06autoconf*' \
\! -path './env.d/06automake*' \
\! -path './env.d/50npm' \
\! -path './env.d/50rust-*' \
\! -path './env.d/60python-docs-*' \
\! -path './env.d/90lex' \
\! -path './env.d/gcc/x86_64-pc-linux-gnu-*' \
\! -path './env.d/rust/*' \
\! -path './environment.d/10-gentoo-env.conf' \
\! -path './eselect/wine/*' \
\! -path './fstab' \
\! -path './fusee-launcher/*' \
\! -path './fwupd/*' \
\! -path './gitconfig' \
\! -path './group' \
\! -path './group-' \
\! -path './grub.d/35_fwupd' \
\! -path './gshadow' \
\! -path './gshadow-' \
\! -path './init.d/fwupd' \
\! -path './init.d/pydoc-*' \
\! -path './kernel' \
\! -path './ld.so.cache' \
\! -path './ld.so.conf' \
\! -path './ld.so.conf.d/05gcc-x86_64-pc-linux-gnu.conf' \
\! -path './local.d/efivars.start' \
\! -path './logrotate.d/bootlog' \
\! -path './machine-id' \
\! -path './modprobe.d/alsa.conf' \
\! -path './mpv/scripts/*.so' \
\! -path './mtab' \
\! -path './mtools/*' \
\! -path './npm/*' \
\! -path './passwd' \
\! -path './passwd-' \
\! -path './pki/fwupd-metadata/*' \
\! -path './pki/fwupd/*' \
\! -path './plymouth/plymouthd.conf' \
\! -path './portage/*' \
\! -path './printcap' \
\! -path './profile.d/.keep' \
\! -path './profile.env' \
\! -path './resolv.conf' \
\! -path './revdep-rebuild/61-openjdk-*' \
\! -path './rhashrc' \
\! -path './runlevels/*' \
\! -path './sandbox.d/20openjdk-*' \
\! -path './sgml/*' \
\! -path './shadow' \
\! -path './shadow-' \
\! -path './ssh/*.pub' \
\! -path './ssh/*_key' \
\! -path './ssh/sshd_config' \
\! -path './ssl/certs/*' \
\! -path './subgid-' \
\! -path './subuid-' \
\! -path './sudoers.d/mid-kid' \
\! -path './tlp.d/my.conf' \
\! -path './udev/rules.d/50-plugdev.rules' \
\! -path './udev/rules.d/70-persistent-net.rules' \
\! -path './w3m/*' \
\! -path './wpa_supplicant/wpa_supplicant.conf' \
\! -path './xml/*' \
\
\! -path './pam.d/swaylock' \
\! -path './sway/*' \
\! -path './xdg/autostart/xembedsniproxy.desktop' \
\! -path './xdg/foot/*' \
\! -path './xdg/waybar/*' \
-exec diff -q "$BROOT/etc/{}" "$ROOT/etc/{}" \;
)