Compare commits

..

No commits in common. "6ee602d0b9dac7a761b5afdb00d31ee9eba556d5" and "0379d33d8d029d4d4b7c7902f81e84de2075558d" have entirely different histories.

7 changed files with 5 additions and 60 deletions

View file

@ -1,9 +0,0 @@
#!/usr/bin/env zsh
# author: Daniel Sommer <daniel.sommer@velvettear.de>
# license: MIT
echo '0' > '/proc/sys/kernel/nmi_watchdog';
echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs';
echo 'disabled' > '/sys/bus/usb/devices/2-3/power/wakeup';
echo 'disabled' > '/sys/bus/usb/devices/2-4/power/wakeup';

View file

@ -1,8 +0,0 @@
#!/usr/bin/env zsh
# author: Daniel Sommer <daniel.sommer@velvettear.de>
# license: MIT
echo '0' > '/proc/sys/kernel/nmi_watchdog';
echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs';
echo 'auto' > '/sys/bus/usb/devices/3-7.3/power/control';

View file

@ -1,18 +0,0 @@
#!/usr/bin/env zsh
# author: Daniel Sommer <daniel.sommer@velvettear.de>
# license: MIT
# exit on error
set -e
# check permissions
[[ "$EUID" != 0 ]] && printf "error: permission denied!\n" >&2 && exit 1
# check if script exists
script="$(dirname $(realpath "$0"))/$(hostname).sh"
[[ ! -x "$script" ]] && printf "error: script '"$script"' does not exist or is not executable!\n" >&2 && exit 1
# execute script
printf ">> executing script '"$script"'...\n"
. "$script"

View file

@ -42,10 +42,11 @@ printf ""$font_colored"> removing orphaned packages..."$font_default"\n"
printf ""$font_colored"> removing \"no valid subscription\" message..."$font_default"\n"
sed -i.bak "s/data.status.* !== 'ACTIVE'/false/I" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
if [[ "$(which restic &> /dev/null)" ]]; then
printf ""$font_colored"> updating restic..."$font_default"\n"
restic self-update
fi
printf ""$font_colored"> updating restic..."$font_default"\n"
restic self-update
#printf ""$font_colored"> installing dark theme..."$font_default"\n"
#bash <(curl -s https://raw.githubusercontent.com/Weilbyte/PVEDiscordDark/master/PVEDiscordDark.sh ) install
printf ""$font_colored_bold">> system updated finished after "$SECONDS" seconds!"$font_default"\n"

View file

@ -1,9 +0,0 @@
[Unit]
Description=set cpu governor to %i
[Service]
Type=oneshot
ExecStart=cpupower frequency-set -g %i
[Install]
WantedBy=multi-user.target

View file

@ -1,9 +0,0 @@
[Unit]
Description=enable various powersaving modes
[Service]
Type=oneshot
ExecStart=/home/velvettear/.dots/scripts/powertop/powertop.sh
[Install]
WantedBy=multi-user.target

View file

@ -3,8 +3,5 @@
# author: Daniel Sommer <daniel.sommer@velvettear.de>
# license: MIT
# share zsh history
setopt SHARE_HISTORY
# exit if user is not root
[[ "$EUID" != "0" ]] && return