Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GPUPM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions tools/defaultmgr.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 4 additions & 3 deletions tools/fts.sh
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tools/vfiomgr.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down