Compare commits
13 Commits
86c1d119e1
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| c786299e91 | |||
| d9b6d6b3c5 | |||
| 7a23304c9c | |||
| eeecf8df23 | |||
| 5f289995ba | |||
| 5542e2ab9a | |||
| 43cca1cb99 | |||
| e2de8ac908 | |||
| da2f64b165 | |||
| ddbd422e11 | |||
| 7e9f60c3ec | |||
| 84a19253c0 | |||
| d1e9c221a3 |
2
aping.sh
2
aping.sh
@@ -87,7 +87,7 @@ withoutLoop(){
|
||||
elif [ $? = "1" ];then
|
||||
|
||||
if [ "${play_sound}" = "true" ];then
|
||||
${sound_player} ${player_opts} ${sound_file} "${sound_message}" &
|
||||
${sound_player} "${player_opts}" "${sound_file}" "${sound_message}" &
|
||||
fi
|
||||
|
||||
|
||||
|
||||
@@ -2,5 +2,9 @@
|
||||
|
||||
|
||||
if [ -f /usr/bin/mpv ];then
|
||||
mpv http://listen.noagendastream.com/noagenda
|
||||
mpv "http://listen.noagendastream.com/noagenda"
|
||||
elif [ -f "/usr/bin/vlc" ];then
|
||||
vlc "http://listen.noagendastream.com/noagenda"
|
||||
else [ -f "/usr/bin/xdg-open" ];then
|
||||
xdg-open "http://listen.noagendastream.com/noagenda"
|
||||
fi
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
pkgname="rtlwifi"
|
||||
pkgurl="https://github.com/cilynx/rtl88x2bu.git"
|
||||
tmpdir="/tmp"
|
||||
pkgname="rtl88x2bu-git"
|
||||
pkgurl="https://github.com/RinCat/RTL88x2BU-Linux-Driver.git"
|
||||
tmpdir="/usr/src"
|
||||
|
||||
_fetch_deps(){
|
||||
if [ -f /usr/bin/apt ];then
|
||||
apt install git dnsmasq hostapd bc build-essential dkms wget unzip rsync
|
||||
sudo apt install git dnsmasq hostapd bc build-essential dkms wget unzip rsync
|
||||
|
||||
elif [ -f /usr/bin/dnf ];then
|
||||
dnf group install "Development Tools"
|
||||
dnf install unzip dnsmasq hostapd bc dkms kernel-headers rsync wget
|
||||
sudo dnf group install "Development Tools"
|
||||
sudo dnf install unzip dnsmasq hostapd bc dkms kernel-headers rsync wget
|
||||
else
|
||||
echo "No supported package manager"
|
||||
fi
|
||||
@@ -20,7 +20,7 @@ _fetch_deps(){
|
||||
|
||||
_download(){
|
||||
if [ ! -d "${tmpdir}"/"${pkgname}" ];then
|
||||
git clone "${pkgurl}" "${tmpdir}"/"${pkgname}"
|
||||
sudo git clone "${pkgurl}" "${tmpdir}"/"${pkgname}"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -30,14 +30,10 @@ _apply_patch(){
|
||||
}
|
||||
|
||||
_install(){
|
||||
cd "${tmpdir}"/"${pkgname}"
|
||||
#_apply_patch
|
||||
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
|
||||
rsync -rvhP ./ /usr/src/rtl88x2bu-"${VER}"
|
||||
dkms add -m rtl88x2bu -v "${VER}"
|
||||
dkms build -m rtl88x2bu -v "${VER}"
|
||||
dkms install -m rtl88x2bu -v "${VER}"
|
||||
modprobe 88x2bu
|
||||
sed -i 's/PACKAGE_VERSION="@PKGVER@"/PACKAGE_VERSION="git"/g' /usr/src/rtl88x2bu-git/dkms.conf
|
||||
sudo dkms add -m rtl88x2bu -v git
|
||||
sudo dkms autoinstall
|
||||
sudo modprobe 88x2bu
|
||||
}
|
||||
|
||||
_fetch_deps
|
||||
|
||||
14
steamloop.sh
Executable file
14
steamloop.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Running Steam in Wine causes Steam on Linux to lose connection
|
||||
# This makes it hard to use Steam link if Steam has to be closed to reset
|
||||
# This script just reopens Steam on the host so that Steam link can reconnect.
|
||||
|
||||
while true;do
|
||||
|
||||
if [ -z "$(pidof steam)" ];then
|
||||
sleep 10s
|
||||
/usr/bin/steam
|
||||
fi
|
||||
|
||||
done
|
||||
87
svc.sh
87
svc.sh
@@ -17,20 +17,25 @@
|
||||
## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
##############################################################################################
|
||||
|
||||
RED='\033[0;31m'
|
||||
LRED="\033[1;31m"
|
||||
BLUE="\033[0;34m"
|
||||
LBLUE="\033[1;34m"
|
||||
GREEN="\033[0;32m"
|
||||
LGREEN="\033[1;32m"
|
||||
YELLOW="\033[1;33m"
|
||||
CYAN="\033[0;36m"
|
||||
LCYAN="\033[1;36m"
|
||||
PURPLE="\033[0;35m"
|
||||
LPURPLE="\033[1;35m"
|
||||
BWHITE="\e[1m"
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
|
||||
if [[ -f "/usr/bin/sv " ]];then
|
||||
serviceManager="runit"
|
||||
echo -e "${LGREEN}Detected Runit${NC}\n"
|
||||
elif [[ -f "/usr/bin/systemctl" ]];then
|
||||
serviceManager="systemd"
|
||||
echo -e "${LGREEN}Detected SystemD${NC}\n"
|
||||
else
|
||||
echo -e "${LRED}no supported service manager found${NC}\n"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
help(){
|
||||
printf """
|
||||
svc - Service Commander - frontend for the sv command
|
||||
@@ -53,6 +58,7 @@ up Show status of running services
|
||||
"""
|
||||
}
|
||||
|
||||
runit(){
|
||||
case $1 in
|
||||
|
||||
enable | --enable-service )
|
||||
@@ -99,3 +105,66 @@ case $1 in
|
||||
help
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
systemd(){
|
||||
|
||||
case "${1}" in
|
||||
enable | --enable-service)
|
||||
systemctl enable "${2}"
|
||||
;;
|
||||
|
||||
disable | --disable-service)
|
||||
systemctl disable "${2}"
|
||||
;;
|
||||
|
||||
enabled | --enabled-services)
|
||||
systemctl list-unit-files --state=enabled
|
||||
;;
|
||||
|
||||
list | ls | --list)
|
||||
echo
|
||||
echo -e "${LGREEN}Available Services (/etc/systemd/system):${NC}\n"
|
||||
ls /etc/systemd/system/
|
||||
echo
|
||||
echo -e "${LCYAN}Enabled Services:${NC}\n"
|
||||
systemctl list-unit-files --state=enabled
|
||||
echo
|
||||
;;
|
||||
up)
|
||||
if [[ ! -z "${2}" ]];then
|
||||
systemctl status "${2}"
|
||||
else
|
||||
systemctl --type=service --state=running
|
||||
fi
|
||||
|
||||
;;
|
||||
|
||||
start)
|
||||
systemctl start "${2}"
|
||||
;;
|
||||
|
||||
restart)
|
||||
systemctl restart "${2}"
|
||||
;;
|
||||
|
||||
stop)
|
||||
systemctl stop "${2}"
|
||||
;;
|
||||
|
||||
--help | -help | help)
|
||||
help
|
||||
;;
|
||||
|
||||
|
||||
|
||||
|
||||
esac
|
||||
}
|
||||
|
||||
if [[ "${serviceManager}" = "runit" ]];then
|
||||
runit "${1}" "${2}"
|
||||
elif [[ "${serviceManager}" = "systemd" ]];then
|
||||
systemd "${1}" "${2}"
|
||||
fi
|
||||
Reference in New Issue
Block a user