mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 06:25:41 -04:00
feat: add distro information to startup console
This commit is contained in:
@@ -77,6 +77,18 @@ declare -A icon=(
|
|||||||
["sh"]=$'\xF0\x9F\x97\x94' # 🗔
|
["sh"]=$'\xF0\x9F\x97\x94' # 🗔
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# #
|
||||||
|
# distro info
|
||||||
|
# #
|
||||||
|
|
||||||
|
sys_os_ver="1.0.0"
|
||||||
|
sys_os_name="Unknown"
|
||||||
|
|
||||||
|
if [ -e /etc/alpine-release ]; then
|
||||||
|
sys_os_name="Alpine"
|
||||||
|
sys_os_ver="$(cat /etc/alpine-release)"
|
||||||
|
fi
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# get container ips
|
# get container ips
|
||||||
# #
|
# #
|
||||||
@@ -141,6 +153,7 @@ printf '%-2s\n' " ${c[greyd]}and EPG files will be available for the public to d
|
|||||||
|
|
||||||
if [[ -z ${TVAPP_NON_ROOT_USER} ]]; then
|
if [[ -z ${TVAPP_NON_ROOT_USER} ]]; then
|
||||||
echo -e
|
echo -e
|
||||||
|
printf '%-6s %-35s %-65s\n' "" " ${c[greenl]}System(s)${c[end]}" "${c[end]}${sys_os_ver} ${sys_os_ver}${c[end]}"
|
||||||
printf '%-6s %-35s %-65s\n' "" " ${c[greenl]}User:Group${c[end]}" "${c[end]}$(id -u dockerx):$(id -g dockerx)${c[end]}"
|
printf '%-6s %-35s %-65s\n' "" " ${c[greenl]}User:Group${c[end]}" "${c[end]}$(id -u dockerx):$(id -g dockerx)${c[end]}"
|
||||||
else
|
else
|
||||||
printf '%-6s %-35s %-65s\n' "" " ${c[greenl]}User:Group${c[end]}" "${c[end]}$(stat /run -c %u):$(stat /run -c %g)${c[end]}"
|
printf '%-6s %-35s %-65s\n' "" " ${c[greenl]}User:Group${c[end]}" "${c[end]}$(stat /run -c %u):$(stat /run -c %g)${c[end]}"
|
||||||
|
|||||||
@@ -78,12 +78,17 @@ declare -A icon=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# define > system
|
# distro info
|
||||||
# #
|
# #
|
||||||
|
|
||||||
sys_os_ver="1.0.0"
|
sys_os_ver="1.0.0"
|
||||||
sys_os_name="Unknown"
|
sys_os_name="Unknown"
|
||||||
|
|
||||||
|
if [ -e /etc/alpine-release ]; then
|
||||||
|
sys_os_name="Alpine"
|
||||||
|
sys_os_ver="$(cat /etc/alpine-release)"
|
||||||
|
fi
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# s6 > store env variables
|
# s6 > store env variables
|
||||||
# #
|
# #
|
||||||
|
|||||||
Reference in New Issue
Block a user