Compare commits

..

2 Commits

Author SHA1 Message Date
38ef6ec0a3 svc.sh: change unenable to disable 2020-02-28 12:58:55 -07:00
38ac94ceaa New File: Endless Sky game save 2020-02-21 14:25:58 -07:00
4 changed files with 2182 additions and 37 deletions

2099
Lynias Kool~3014-04-09.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -85,10 +85,20 @@ function autoSwap(){
echo -e "${LRED}Swap line does not exist in /etc/fstab, please manually check this.${NC}\n"
else
echo -e "${LGREEN}Swap successfully added to /etc/fstab${NC}\n"
echo -e "${LGREEN}Swap successfully added to /etc/fstab! Reboot to verify success...${NC}\n"
echo -e "\n${LGREEN}Swapfile setup complete${NC}\n"
echo -e "${YELLOW}Do you want to reboot your system now?(n/Y): ${NC}"
read rebootCheck
if [ "${rebootCheck}" = "y" ] || [ "${rebootCheck}" = "Y" ];then
echo -e "${LRED}Rebooting system in 3 seconds...${NC}\n"
sleep 3
sudo reboot
else
echo -e "\n${LGREEN}Swapfile setup complete, setting swappiness level...${NC}\n"
fi
fi
}

36
get-lbry.sh Normal file
View File

@@ -0,0 +1,36 @@
#!/bin/bash
appname="LBRY"
version="0.15.0"
arch="amd64"
url="https://github.com/lbryio/lbry-app/releases/download/v${version}/${appname}_${version}_${arch}.deb"
depends="gnome-keyring nodejs npm binutils xz"
tmpdir="/tmp"
output_file="lbry.deb"
desc="Content distribution platform using blockchain technology"
fetch_deps(){
sudo dnf install ${depends}
}
fetch_url(){
if [ ! -f ${tmpdir}/${output_file} ];then
wget -O ${tmpdir}/${output_file} ${url}
fi
}
extract_file(){
cd ${tmpdir}
sudo ar x ${output_file} data.tar.xz
sudo tar xvf data.tar.xz
}
install(){
sudo cp -rv ${tmpdir}/usr/* /usr/
sudo cp -rv ${tmpdir}/opt/* /opt/
}
fetch_deps
fetch_url
extract_file
install

68
svc.sh
View File

@@ -1,9 +1,9 @@
#!/bin/sh
#!/bin/bash
# SVC - SV Commander - frontend for the sv command
###############################################################################################
## Copyright (c) 2015 - 2020, Justin Moore
## Copyright (c) 2015, Justin Moore
##
## Permission to use, copy, modify, and/or distribute this software
## for any purpose with or without fee is hereby granted,
@@ -47,8 +47,8 @@ stop Stop an enabled service
enable Symenlink directory/file to /var/service
disable Remove symlink from /var/service
enabled View synlinked paths of all services
ls List enabled and disabled service files
up Show status of running services
ls List enabled and unenabled service files
up Show status of running services
"""
}
@@ -57,45 +57,45 @@ case $1 in
enable | --enable-service )
ln -v -s /etc/sv/"${2}" /var/service/
;;
;;
disable | --remove-service )
rm -v /var/service/"${2}"
;;
;;
enabled | --enabled-services )
cd /etc/sv && find -xtype l -exec ls -l {} \;
;;
enabled | --enabled-services )
cd /etc/sv && find -xtype l -exec ls -l {} \;
;;
list | ls | --list )
list | ls | --list )
echo
echo "${LGREEN}Available Services (/etc/sv/):${NC}\n"
ls /etc/sv
echo
echo "${LCYAN}Enabled Services (/var/service):${NC}\n"
echo
ls /var/service
echo
;;
echo
echo -e "${LGREEN}Available Services (/etc/sv/):${NC}\n"
ls /etc/sv
echo
echo -e "${LCYAN}Enabled Services (/var/service):${NC}\n"
echo
ls /var/service
echo
;;
up )
sv s /var/service/*
;;
up )
sv s /var/service/*
;;
start )
sv start "${2}"
;;
start )
sv start "${2}"
;;
restart )
sv restart "${2}"
;;
restart )
sv restart "${2}"
;;
stop )
sv stop "${2}"
;;
stop )
sv stop "${2}"
;;
*)
help
;;
--help | -h | help )
help
;;
esac