iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mainly add external monitoring of mail server
[distro-setup]
/
distro-begin
diff --git
a/distro-begin
b/distro-begin
index 89a09babf4e1f78c6a9af33ed530985da90a0359..0377b1c1526ffe9409d5b4b57c98c615cf96337a 100755
(executable)
--- a/
distro-begin
+++ b/
distro-begin
@@
-236,7
+236,7
@@
done
###### do conflink
# linode needs bind group before conflink
###### do conflink
# linode needs bind group before conflink
-if
$
linode; then
+if linode; then
pi-nostart bind9
fi
# this needs to be before installing pacserve so we have gpg conf.
pi-nostart bind9
fi
# this needs to be before installing pacserve so we have gpg conf.
@@
-246,6
+246,7
@@
conflink
set +x
err-allow
source /etc/profile.d/environment.sh
set +x
err-allow
source /etc/profile.d/environment.sh
+export BRC=t
# shellcheck source=./.bashrc
source ~/.bashrc
err-catch
# shellcheck source=./.bashrc
source ~/.bashrc
err-catch
@@
-335,7
+336,7
@@
case $distro in
sudo rmmod evbug ||: # might not be loaded yet
file=/etc/modprobe.d/evbug.conf
line="blacklist evbug"
sudo rmmod evbug ||: # might not be loaded yet
file=/etc/modprobe.d/evbug.conf
line="blacklist evbug"
- if
! grep -xFq "$line" $file
; then
+ if
[[ $(cat $file) != $line ]]
; then
sudo dd of=$file 2>/dev/null <<<"$line"
sudo depmod -a
sudo update-initramfs -u
sudo dd of=$file 2>/dev/null <<<"$line"
sudo depmod -a
sudo update-initramfs -u