remove raspberry from bash_aliases
add mediahost to wol.sh
This commit is contained in:
1 parent
27d570fc5c
commit
deaff35bc3
2 files changed
+7
-53
No files matched your search
@@ -2,6 +2,8 @@
|
||||
device=$1
|
||||
if [ "$device" == "serverhost" ]; then
|
||||
mac="64:51:06:51:cb:39"
|
||||
elif [ "$device" == "mediahost" ]; then
|
||||
mac="9c:6b:00:a3:36:c7"
|
||||
elif [ "$device" == "quiethost" ]; then
|
||||
mac="24:4B:FE:DE:93:3E"
|
||||
elif [ "$(echo ${device} | grep -E -o "([0-9A-Fa-f]{2}[\:]){5}[0-9A-Fa-f]{2}")" != "" ]; then
|
||||
|
||||
@@ -1,24 +1,6 @@
|
||||
HOST=$(hostname)
|
||||
if [ "${HOST}" == "quiethost" ]; then
|
||||
DOC_DIR="/home/lucas/Documents"
|
||||
UNSYNCED="SW"
|
||||
elif [ "${HOST}" == "vivohost" ];then
|
||||
UNSYNCED="Music\nSW\nPictures\nDokumente/Studium\nDokumente/Auslandsdienst"
|
||||
DOC_DIR="/home/lucas/Documents"
|
||||
rasp_host="someoneslinux.ddns.net"
|
||||
elif [ "${HOST}" != "raspberry" ]; then
|
||||
UNSYNCED="Music\nSW\nPictures "
|
||||
DOC_DIR="/home/lucas/Documents"
|
||||
fi
|
||||
|
||||
if [ "${HOST}" == "raspberry" ]; then
|
||||
LOCAL_SCRIPTS="/home/lucas/Raspberry/scripts"
|
||||
DOC_DIR="/home/lucas/Documents"
|
||||
else
|
||||
LOCAL_SCRIPTS="/home/lucas/scripts"
|
||||
rasp_host=raspberry
|
||||
fi
|
||||
NC_SCRIPTS="$DOC_DIR/Dokumente/Projekte/Server/scripts"
|
||||
LOCAL_SCRIPTS="/home/lucas/scripts"
|
||||
alias please="sudo"
|
||||
alias NC_scripts="cd ${NC_SCRIPTS}"
|
||||
alias regex_rename="${LOCAL_SCRIPTS}/rename.sh"
|
||||
@@ -35,6 +17,10 @@ alias pubip="wget -T 5 -qO- ifconfig.co"
|
||||
alias pubip_country="wget -T 5 -qO- ifconfig.co/country"
|
||||
alias ipinfo='${LOCAL_SCRIPTS}/ip_info.sh'
|
||||
alias pygen="/home/lucas/scripts/.venv/bin/python3"
|
||||
|
||||
alias mediawake="bash ${LOCAL_SCRIPTS}/network/wol.sh mediahost -c"
|
||||
alias serverwake="bash ${LOCAL_SCRIPTS}/network/wol.sh serverhost -c"
|
||||
alias quietwake="bash ${LOCAL_SCRIPTS}/network/wol.sh quiethost"
|
||||
if [[ "${HOST}" == "quiethost" ]] || [[ "${HOST}" == "serverhost" ]]; then
|
||||
### Veracrypt aliases
|
||||
#Passwd Mount and Grep
|
||||
@@ -52,40 +38,6 @@ if [[ "${HOST}" == "quiethost" ]] || [[ "${HOST}" == "serverhost" ]]; then
|
||||
alias recipeAI="~/.venv_general/bin/python3 ~/scripts/quiethost/generateNutritionInfowithGemini.py /data/Nextcloud/Documents/Dokumente/Shared/Diverses/Kochbuch/RecepiesLucas/"
|
||||
alias ffmepeg_handling="~/.venv_general/bin/python3 ~/scripts/ffmpeg_handling.py"
|
||||
fi
|
||||
|
||||
if [ "${HOST}" != "raspberry" ]; then
|
||||
# Shutdown
|
||||
alias alldown='ssh ${rasp_host} hostdown all -c'
|
||||
alias serverdown='ssh ${rasp_host} hostdown serverhost -c'
|
||||
alias delldown='ssh ${rasp_host} hostdown quiethost -c'
|
||||
# Wake
|
||||
alias serverwake="ssh ${rasp_host} wake serverhost"
|
||||
alias quietwake="bash ${LOCAL_SCRIPTS}/network/wol.sh quiethost"
|
||||
# SSH
|
||||
alias rasp="ssh ${rasp_host}"
|
||||
alias raspcopy='bash ${LOCAL_SCRIPTS}/copy.sh -h ${rasp_host} -f '
|
||||
#NW Stat
|
||||
alias NWscan="ssh ${rasp_host} hoststatus netw -c"
|
||||
alias hoststat="ssh ${rasp_host} hoststatus hosts -c"
|
||||
elif [ "${HOST}" != "vivohost" ];then
|
||||
# Raspberry Shutdown
|
||||
alias serverdown='hostdown serverhost -c'
|
||||
alias delldown='hostdown quiethost -c'
|
||||
alias alldown='hostdown all -c'
|
||||
alias pcdown='hostdown pc -c'
|
||||
# Raspberry Wake
|
||||
alias serverwake='wake serverhost'
|
||||
alias quietwake='wake quiethost'
|
||||
# Raspberry Hoststatus
|
||||
alias hoststat="hoststatus hosts -c"
|
||||
alias NWscan="hoststatus netw -c"
|
||||
# Raspberry Network Settings
|
||||
alias IFchange="sudo bash ${LOCAL_SCRIPTS}/IFchange.sh"
|
||||
alias IPsettings="sudo bash /home/lucas/Raspberry/scripts/iptables.sh"
|
||||
alias IPtables-save='sudo sh -c '\''iptables-save > /etc/network/iptables'\'''
|
||||
# Raspberry Owncloud
|
||||
alias syncNC="nextcloudcmd --path Dokumente/Dokumente/Projekte/Server /home/lucas/Documents/Dokumente/Projekte/Server https://lucas:S1mpleRe1e4sedP1ayingDesign@someoneslinux.ddns.net"
|
||||
fi
|
||||
if [ "${HOST}" != "serverhost" ]; then
|
||||
alias serverhost="ssh -X serverhost"
|
||||
alias lstorr="ssh serverhost du -a -d1 -h /torrent/complete/ | sed 's/\/torrent\/complete\///'g | head -n -1"
|
||||
|
||||
Reference in new issue
Block a user