This commit is contained in:
2019-10-04 05:55:40 -07:00
parent f23a098555
commit bad920ab58
11 changed files with 58 additions and 27 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash
# Prevent *.sh from returning itself if there are no matches
shopt -s nullglob
# Run every per-once script
run-parts --regex '.*\.sh$' /boot/per-once.d
# Rename every per-once script
for f in /boot/per-once.d/*.sh; do
mv $f $(dirname $f)/$(basename $f .sh).$(date +%F@%H.%M.%S)
done
# Run every per-boot script
run-parts --regex '.*\.sh$' /boot/per-boot.d