Rename the visible VoxIP texts to Daynivo
Product name (Daynivo Kiosk OS), default device name, kiosk screens, service descriptions, installer output and docs. Internal names (voxip-kiosk-*, /etc/voxip-kiosk, user voxip, VOXIP_* variables) stay. An update renames a device still called "VoxIP Kiosk" to the new default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f30f602d4f
commit
4e20e358aa
40 files changed
+61
-58
No files matched your search
+10
-7
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# VoxIP Kiosk OS installer.
|
||||
# Daynivo Kiosk OS installer.
|
||||
#
|
||||
# Turns Raspberry Pi OS Lite (Bookworm/Trixie, NetworkManager) into a VoxIP
|
||||
# Turns Raspberry Pi OS Lite (Bookworm/Trixie, NetworkManager) into a Daynivo
|
||||
# kiosk. Also used by the image builder (inside the pi-gen chroot), so a
|
||||
# flashed image and a manual install are identical.
|
||||
#
|
||||
@@ -53,7 +53,7 @@ while [[ $# -gt 0 ]]; do
|
||||
done
|
||||
|
||||
[[ $EUID -eq 0 ]] || die "Voer dit script uit met sudo."
|
||||
[[ -f "$SRC/src/voxip_kiosk/config.py" ]] || die "Start install.sh vanuit de VoxIP Kiosk OS-repository."
|
||||
[[ -f "$SRC/src/voxip_kiosk/config.py" ]] || die "Start install.sh vanuit de Daynivo Kiosk OS-repository."
|
||||
|
||||
in_chroot() {
|
||||
if command -v systemd-detect-virt >/dev/null 2>&1 && systemd-detect-virt --chroot --quiet; then
|
||||
@@ -75,12 +75,12 @@ esac
|
||||
|
||||
if [[ $LIVE -eq 1 && $MODE == install ]]; then
|
||||
if ! systemctl is-enabled --quiet NetworkManager.service 2>/dev/null && systemctl is-enabled --quiet dhcpcd.service 2>/dev/null; then
|
||||
die "Dit systeem gebruikt dhcpcd. VoxIP Kiosk OS vereist NetworkManager (standaard sinds Bookworm). Schakel om via 'sudo raspi-config' → Advanced Options → Network Config, of gebruik de kant-en-klare image."
|
||||
die "Dit systeem gebruikt dhcpcd. Daynivo Kiosk OS vereist NetworkManager (standaard sinds Bookworm). Schakel om via 'sudo raspi-config' → Advanced Options → Network Config, of gebruik de kant-en-klare image."
|
||||
fi
|
||||
fi
|
||||
|
||||
VERSION="$(tr -d '[:space:]' < "$SRC/VERSION")"
|
||||
say "VoxIP Kiosk OS $VERSION installeren (modus: $MODE)"
|
||||
say "Daynivo Kiosk OS $VERSION installeren (modus: $MODE)"
|
||||
|
||||
# --- packages -----------------------------------------------------------------
|
||||
pkg_available() { apt-cache policy "$1" 2>/dev/null | grep -q 'Candidate: [0-9]'; }
|
||||
@@ -109,7 +109,7 @@ pkg_available() { apt-cache policy "$1" 2>/dev/null | grep -q 'Candidate: [0-9]'
|
||||
say "Gebruikers aanmaken"
|
||||
getent group kiosk >/dev/null || groupadd --system kiosk
|
||||
id kiosk >/dev/null 2>&1 || useradd --system --gid kiosk --home-dir /home/kiosk --create-home \
|
||||
--shell /usr/sbin/nologin --comment "VoxIP kiosk display" kiosk
|
||||
--shell /usr/sbin/nologin --comment "Daynivo kiosk display" kiosk
|
||||
for g in video render input audio; do
|
||||
getent group "$g" >/dev/null && usermod -aG "$g" kiosk
|
||||
done
|
||||
@@ -175,6 +175,9 @@ updates = {}
|
||||
if url: updates["url"] = url
|
||||
if name: updates["device_name"] = name
|
||||
if os.path.exists(path):
|
||||
# The old default device name went along with the rename to Daynivo; a chosen name stays.
|
||||
if "device_name" not in updates and c.load_config(c.Path(path)).get("device_name") == "VoxIP Kiosk":
|
||||
updates["device_name"] = "Daynivo Kiosk"
|
||||
if updates:
|
||||
c.save_config(c.Path(path), updates)
|
||||
print("Bestaande configuratie bijgewerkt:", ", ".join(updates))
|
||||
@@ -325,7 +328,7 @@ HOST="$(hostname)"
|
||||
SCHEME=http
|
||||
grep -q '"admin_https": true' "$ETC/config.json" && SCHEME=https
|
||||
echo
|
||||
say "VoxIP Kiosk OS $VERSION is geïnstalleerd."
|
||||
say "Daynivo Kiosk OS $VERSION is geïnstalleerd."
|
||||
echo " Beheerinterface: ${SCHEME}://${HOST}.local:${ADMIN_PORT}"
|
||||
for ip in $(hostname -I 2>/dev/null); do
|
||||
[[ $ip == *:* ]] || echo " ${SCHEME}://${ip}:${ADMIN_PORT}"
|
||||
|
||||
Reference in new issue
Block a user