host info updates
[distro-setup] / script-files
1 #!/bin/bash
2 # I, Ian Kelling, follow the GNU license recommendations at
3 # https://www.gnu.org/licenses/license-recommendations.en.html. They
4 # recommend that small programs, < 300 lines, be licensed under the
5 # Apache License 2.0. This file contains or is part of one or more small
6 # programs. If a small program grows beyond 300 lines, I plan to switch
7 # its license to GPL.
8
9 # Copyright 2024 Ian Kelling
10
11 # Licensed under the Apache License, Version 2.0 (the "License");
12 # you may not use this file except in compliance with the License.
13 # You may obtain a copy of the License at
14
15 # http://www.apache.org/licenses/LICENSE-2.0
16
17 # Unless required by applicable law or agreed to in writing, software
18 # distributed under the License is distributed on an "AS IS" BASIS,
19 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 # See the License for the specific language governing permissions and
21 # limitations under the License.
22
23 ### FOR SOURCING ###
24
25 my_bin_files=(
26 switch-mail-host
27 switch-host2
28 btrbk-run mount-latest-subvol
29 check-subvol-stale
30 myi3status
31 mailbindwatchdog
32 check-mailq
33 unsaved-buffers
34 unsaved-buffers.el
35 mail-backup-clean
36 iptables-exim
37 ip6tables-exim
38 exim-nn-iptables
39 check-crypttab
40 /a/bin/cedit/cedit
41 btrbk-spread-wrap
42 prof
43 prof-remote
44 prof-backup
45 prof-tail
46 prof-notify
47 /a/bin/newns/newns
48 )
49
50 for f in /b/log-quiet/*; do
51 if [[ -x $f && ! -d $f && ! -L $f && $f != setup ]]; then
52 my_bin_files+=("$f")
53 fi
54 done
55
56
57 my_service_scripts=(
58 epanic-clean
59 system-status
60 btrfsmaint
61 mailtest-check
62 dynamic-ip-update
63 )
64
65 # note: turn this into an array if we ever add more
66 my_lib_files=/a/bin/bash-bear-trap/bash-bear
67
68 all_my_scripts=("${my_service_scripts[@]}" "${my_bin_files[@]}" $my_lib_files)