find-maybe -type d \! -name wireguard \! -path '*/moddata/*' \! -name moddata -exec chmod go+rX '{}' +
find_paths=(/p/c/filesystem/etc/ssh /p/c/machine_specific/*/filesystem/etc/ssh)
- find-maybe -type f -name '*.pub' -exec chmod go+rX '{}' +
+ find-maybe -type f \! -name '*key' -exec chmod go+rX '{}' +
find_paths=(/p/c/machine_specific/*/filesystem/etc/apt)
find-maybe -type f -exec chmod go+rX '{}' +
sleep 10
while true; do
premain_sec=$EPOCHSECONDS
- maybe-toggle-ssh
+ # Disabled as the config change seems to be unreliable. I see ssh
+ # start, then listen on only 1 port even though 2 are listed in the
+ # config, I can't figure out why, then it starts working randomly.
+
+ #maybe-toggle-ssh
main
maini=$((maini + 1))
sleep $(( 300 - ( EPOCHSECONDS - premain_sec ) ))