testing more

This commit is contained in:
2019-10-04 06:46:23 -07:00
parent 0c72b2c372
commit 5273235554
14 changed files with 8 additions and 7 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