mirror of
https://github.com/keylase/nvidia-patch.git
synced 2024-12-22 12:53:35 +00:00
Revert "Added root check to patch.sh and patch-fbc.sh"
This reverts commit 5c7b570254
.
This commit is contained in:
parent
72659eda27
commit
5db577ccef
@ -4,15 +4,6 @@ set -euo pipefail ; # <- this semicolon and comment make options apply
|
|||||||
# even when script is corrupt by CRLF line terminators (issue #75)
|
# even when script is corrupt by CRLF line terminators (issue #75)
|
||||||
# empty line must follow this comment for immediate fail with CRLF newlines
|
# empty line must follow this comment for immediate fail with CRLF newlines
|
||||||
|
|
||||||
# root check
|
|
||||||
if [ "$(id -u)" -ne 0 ]; then
|
|
||||||
echo
|
|
||||||
echo -e "Please run as root!"
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
backup_path="/opt/nvidia/libnvidia-fbc-backup"
|
backup_path="/opt/nvidia/libnvidia-fbc-backup"
|
||||||
silent_flag=''
|
silent_flag=''
|
||||||
manual_driver_version=''
|
manual_driver_version=''
|
||||||
|
9
patch.sh
9
patch.sh
@ -4,15 +4,6 @@ set -euo pipefail ; # <- this semicolon and comment make options apply
|
|||||||
# even when script is corrupt by CRLF line terminators (issue #75)
|
# even when script is corrupt by CRLF line terminators (issue #75)
|
||||||
# empty line must follow this comment for immediate fail with CRLF newlines
|
# empty line must follow this comment for immediate fail with CRLF newlines
|
||||||
|
|
||||||
# root check
|
|
||||||
if [ "$(id -u)" -ne 0 ]; then
|
|
||||||
echo
|
|
||||||
echo -e "Please run as root!"
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
backup_path="/opt/nvidia/libnvidia-encode-backup"
|
backup_path="/opt/nvidia/libnvidia-encode-backup"
|
||||||
silent_flag=''
|
silent_flag=''
|
||||||
manual_driver_version=''
|
manual_driver_version=''
|
||||||
|
Loading…
Reference in New Issue
Block a user