mirror of
https://github.com/CosmicScale/PSBBN-Definitive-English-Patch.git
synced 2025-02-11 02:28:51 +01:00
Setup script modified to work on live USBs
This commit is contained in:
parent
b04097b661
commit
ba7c65d351
24
01-Setup.sh
24
01-Setup.sh
@ -10,11 +10,25 @@ echo " \____/ \___|\__|\__,_| .__/ ";
|
||||
echo " | | ";
|
||||
echo " |_| ";
|
||||
echo
|
||||
echo "This script installs all dependencies required for the 'PSBBN Installer' and 'Game Installer'."
|
||||
echo "It must be run first."
|
||||
echo " This script installs all dependencies required for the 'PSBBN Installer' and 'Game Installer'."
|
||||
echo " It must be run first."
|
||||
echo
|
||||
echo "Press any key to continue..."
|
||||
read -n 1 -s
|
||||
read -p " Press any key to continue..."
|
||||
echo
|
||||
|
||||
# Path to the sources.list file
|
||||
SOURCES_LIST="/etc/apt/sources.list"
|
||||
|
||||
# Check if the file exists
|
||||
if [[ -f "$SOURCES_LIST" ]]; then
|
||||
# Remove the "deb cdrom" line and store the result
|
||||
if grep -q 'deb cdrom' "$SOURCES_LIST"; then
|
||||
sudo sed -i '/deb cdrom/d' "$SOURCES_LIST"
|
||||
echo "'deb cdrom' line has been removed from $SOURCES_LIST."
|
||||
else
|
||||
echo "No 'deb cdrom' line found in $SOURCES_LIST."
|
||||
fi
|
||||
fi
|
||||
|
||||
# Update package list and install necessary packages
|
||||
sudo apt update && sudo apt install -y axel imagemagick xxd python3-venv python3-pip nodejs npm
|
||||
@ -60,4 +74,4 @@ deactivate
|
||||
|
||||
echo
|
||||
echo "Setup completed successfully!"
|
||||
read -p "Press any key to exit..."
|
||||
read -p "Press any key to exit..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user