-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3eb7a9a
commit 569d9db
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Imports | ||
import os | ||
|
||
# Change configuration to enable the mainline kernel | ||
def mainlineInstall(): | ||
os.system("touch ~/.rhino/config/mainline") | ||
print("Configuration updated!") | ||
|
||
# Do not enable the mainline kernel | ||
def mainlineDenied(): | ||
print("No changes were made to the Rhino Configuration") | ||
|
||
def config(): | ||
# Splash screen | ||
print("\nWelcome to the Rhino configuration script") | ||
print("---") | ||
print("The Rhino Configuration script allows for you to customise the rhino-update utility and extend its capabilities, such as allowing for the installation of unsupported software.") | ||
print("Please be cautious when using rhino-config, issues can arise from some of the settings so please ensure that you know what you are doing and have read the documentation.") | ||
print("---") | ||
# Give the user the choice of installing the latest mainline kernel and take user input | ||
mainline = input("Do you wish to install the latest Linux mainline kernel? [Y/n] ") | ||
# If user input is yes, go to the mainline install function | ||
if mainline == "Y" or mainline == "y" or mainline == "": | ||
mainlineInstall() | ||
# If user input is no, go to the mainline denied function | ||
elif mainline == "n" or mainline == "N": | ||
mainlineDenied() | ||
|
||
# Print that the program has completed and then exit | ||
print("\nrhino-config has completed, please run rhino-update to update your system!") | ||
quit() | ||
|
||
# Call the script | ||
config() |