From b94c2533988725f6f676ee9c2fe3f95381641f4b Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Wed, 5 May 2021 09:00:38 +0800 Subject: [PATCH] bashrc: functions: use doas --- .bashrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.bashrc b/.bashrc index c468e0b..690305d 100644 --- a/.bashrc +++ b/.bashrc @@ -99,19 +99,19 @@ play-playlist() { psave() { if [ "$1" = "perf" ];then echo powersave perfomance - echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/energy_performance_preference >/dev/null + echo performance | doas tee /sys/devices/system/cpu/cpu*/cpufreq/energy_performance_preference >/dev/null elif [ "$1" = "off" ];then echo powersave off - echo balance_performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/energy_performance_preference >/dev/null + echo balance_performance | doas tee /sys/devices/system/cpu/cpu*/cpufreq/energy_performance_preference >/dev/null else echo powersave on - echo power | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/energy_performance_preference >/dev/null + echo power | doas tee /sys/devices/system/cpu/cpu*/cpufreq/energy_performance_preference >/dev/null fi } timesync() { - sudo busybox ntpd -dqn -p time.stdtime.gov.tw - sudo busybox hwclock -wu + doas busybox ntpd -dqn -p time.stdtime.gov.tw + doas busybox hwclock -wu } sleepto() { -- 2.45.2