Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nvidia-patch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
nvidia-patch
Commits
5c7b5702
Commit
5c7b5702
authored
Nov 23, 2024
by
Nostrus Admin
Committed by
Jai Luthra
Nov 24, 2024
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added root check to patch.sh and patch-fbc.sh
parent
081807cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
patch-fbc.sh
patch-fbc.sh
+9
-0
patch.sh
patch.sh
+9
-0
No files found.
patch-fbc.sh
View file @
5c7b5702
...
@@ -4,6 +4,15 @@ set -euo pipefail ; # <- this semicolon and comment make options apply
...
@@ -4,6 +4,15 @@ 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
=
''
...
...
patch.sh
View file @
5c7b5702
...
@@ -4,6 +4,15 @@ set -euo pipefail ; # <- this semicolon and comment make options apply
...
@@ -4,6 +4,15 @@ 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
=
''
...
...
nanahira
@nanahira
mentioned in commit
5db577cc
·
Dec 12, 2024
mentioned in commit
5db577cc
mentioned in commit 5db577ccef1dbc48e8c22738612d6c86ac30f237
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment