add version

reported on console and log
This commit is contained in:
macmpi 2022-12-05 10:09:59 +01:00
parent 009e17dfa8
commit 67fbe22acb
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -1,8 +1,12 @@
#!/bin/sh #!/bin/sh
VERSION="0.5"
# Redirect stdout and errors to console as rc.local does not log anything # Redirect stdout and errors to console as rc.local does not log anything
exec 1>/dev/console 2>&1 exec 1>/dev/console 2>&1
logger -st ${0##*/} "Alpine Linux headless bootstrap v$VERSION by macmpi"
mkdir /tmp/.trash mkdir /tmp/.trash
ovlpath=$( find /media -type d -path '*/.*' -prune -o -type f -name *.apkovl.tar.gz -exec dirname {} \; | head -1 ) ovlpath=$( find /media -type d -path '*/.*' -prune -o -type f -name *.apkovl.tar.gz -exec dirname {} \; | head -1 )