diff --git a/GPUPM.cpp b/GPUPM.cpp index 4d9b2bd..cb17ee4 100644 --- a/GPUPM.cpp +++ b/GPUPM.cpp @@ -78,7 +78,7 @@ int main(int argc, char **argv) { int checkIfFileExists(const char *filename); if (geteuid() == 0) { if( access("./data.json", F_OK ) != -1){ - system("python ./py/load.py"); + system("python3 ./py/load.py"); //initiate gtk widgets GtkWidget *window, *grid, *para, *default1, *vfio, *vbox, *label, *text, *settingsMan; GdkPixbuf *pixbuf; diff --git a/tools/defaultmgr.sh b/tools/defaultmgr.sh index f19f724..7bf3a17 100644 --- a/tools/defaultmgr.sh +++ b/tools/defaultmgr.sh @@ -1,14 +1,14 @@ #!/bin/bash # Get this script's directory -SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd) echo "Removing configuration file..." rm /etc/modprobe.d/vfio.conf echo "Rebuilding system images..." INITRAM=/etc/initramfs-tools/modules if [ -f "$INITRAM" ]; then - update-initramfs -u + update-initramfs -u -k all fi MKINIT=/etc/mkinitcpio.conf if [ -f "$MKINIT" ]; then diff --git a/tools/fts.sh b/tools/fts.sh index 75dc53a..02bf5ad 100644 --- a/tools/fts.sh +++ b/tools/fts.sh @@ -1,7 +1,8 @@ #!/bin/bash # Get this script's directory -SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +# SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd) i=0 #Add IOMMU to GRUB conf, then make the config. @@ -150,8 +151,8 @@ if [ -f "$INITRAM" ]; then x=1 fi if [ $x -gt 0 ]; then - echo "updating initramfs" - update-initramfs -u + echo "updating initramfs (for all kernels)" + update-initramfs -u -k all else echo "initramfs already configured" fi diff --git a/tools/vfiomgr.sh b/tools/vfiomgr.sh index 7d6b689..369b703 100644 --- a/tools/vfiomgr.sh +++ b/tools/vfiomgr.sh @@ -1,14 +1,14 @@ #!/bin/bash # Get this script's directory -SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd) echo "Copying configuration file..." cp ./vfio.conf /etc/modprobe.d/ echo "Rebuilding system images..." INITRAM=/etc/initramfs-tools/modules if [ -f "$INITRAM" ]; then - update-initramfs -u + update-initramfs -u -k all fi MKINIT=/etc/mkinitcpio.conf if [ -f "$MKINIT" ]; then