From 1adbaf3e8e1d46a6201348cc96cef165bc02ea09 Mon Sep 17 00:00:00 2001 From: SimonFair <39065407+SimonFair@users.noreply.github.com> Date: Thu, 6 Nov 2025 07:40:37 +0000 Subject: [PATCH] Move backend to rc.local --- emhttp/plugins/dynamix/include/SysDevs.php | 7 ++++--- etc/rc.d/rc.S.cont | 3 --- etc/rc.d/rc.local | 3 +++ 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/emhttp/plugins/dynamix/include/SysDevs.php b/emhttp/plugins/dynamix/include/SysDevs.php index 8deab6b4a..184330058 100644 --- a/emhttp/plugins/dynamix/include/SysDevs.php +++ b/emhttp/plugins/dynamix/include/SysDevs.php @@ -432,7 +432,8 @@ case 't1': } echo ''; - echo " -> ".$num_vfs; + echo " "._("Current:").$num_vfs; + #sprintf(" "._("Current").":%1s",$num_vfs); echo ' '; echo ' '; @@ -461,7 +462,7 @@ case 't1': if (file_exists('/sys/bus/pci/devices/'.$pciaddress.'/reset')) echo ""; echo ""; if (!$removed) { - echo '| or just echo (in_array($pciaddress."|".$vd, $vfio_cfg_devices) || in_array($pciaddress, $vfio_cfg_devices)) ? " checked>" : ">"; } @@ -503,7 +504,7 @@ case 't1': echo ""; echo ' '; echo ' '; - echo "-> {$vrf['mac']}"; + echo _("Current").": {$vrf['mac']}"; echo ""; } } diff --git a/etc/rc.d/rc.S.cont b/etc/rc.d/rc.S.cont index f4fed1d8b..a38176575 100755 --- a/etc/rc.d/rc.S.cont +++ b/etc/rc.d/rc.S.cont @@ -13,9 +13,6 @@ # run & log functions . /etc/rc.d/rc.runlog -# LimeTech - setup selected devices for sriov -/usr/local/sbin/sriov 1>/var/log/sriov 2>/var/log/sriov-errors - # LimeTech - bind selected devices to vfio-pci /usr/local/sbin/vfio-pci 1>/var/log/vfio-pci 2>/var/log/vfio-pci-errors diff --git a/etc/rc.d/rc.local b/etc/rc.d/rc.local index 292bf1fde..7b108a03f 100755 --- a/etc/rc.d/rc.local +++ b/etc/rc.d/rc.local @@ -14,6 +14,9 @@ # run & log functions . /etc/rc.d/rc.runlog +# LimeTech - setup selected devices for sriov +/usr/local/sbin/sriov 1>/var/log/sriov 2>/var/log/sriov-errors + # import CA proxy UNPROXY=/boot/config/plugins/dynamix/outgoingproxy.cfg CAPROXY=/boot/config/plugins/community.applications/proxy.cfg