add driver modifier
This commit is contained in:
parent
2af456f72d
commit
99b09e5903
8
data/modify-driver.sh
Executable file
8
data/modify-driver.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#! /bin/bash
|
||||
|
||||
if dpkg -s "$1"
|
||||
then
|
||||
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY bash -c "apt remove $1 -y && sudo apt autoremove -y"
|
||||
else
|
||||
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY bash -c "apt update -y && apt install $1 -y"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user