From 84dc487f95736f2f290cc0f112cf781ea016905f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 29 Apr 2024 09:41:33 +0200 Subject: [PATCH] Remove Ram drive --- birdnet-pi/rootfs/etc/cont-init.d/99-run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh b/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh index 919d56116..e011260bb 100755 --- a/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh +++ b/birdnet-pi/rootfs/etc/cont-init.d/99-run.sh @@ -48,6 +48,11 @@ bashio::log.info "Adapting webui" echo "... removing System Controls from webui as should be used from HA" sed -i '/>System Controls/d' "$HOME"/BirdNET-Pi/homepage/views.php +# Remove services tab +echo "... removing Ram drive from webui as it is handled from HA" +sed -i '/Ram drive/{n;s/center"/center" style="display: none;"/;}' "$HOME"/BirdNET-Pi/scripts/service_controls.php +sed -i '/Ram drive/d' "$HOME"/BirdNET-Pi/scripts/service_controls.php + # Correct the phpsysinfo for the correct gotty service gottyservice="$(pgrep -l "gotty" | awk '{print $NF}' | head -n 1)" echo "... using $gottyservice in phpsysinfo"