Browse Source

Added --loglevel opti0ne to restart_lircd.sh, also renamed Samsung conf to be consistent w/ da rest lmoa

Wazakindjes 1 year ago
parent
commit
5e710d73f1
2 changed files with 5 additions and 0 deletions
  1. 5 0
      lircd/restart_lircd.sh
  2. 0 0
      lircd/samsung_lt22c300_tv.conf

+ 5 - 0
lircd/restart_lircd.sh

@@ -5,6 +5,8 @@ irdev=dev/lirc0
 irsock=/var/run/lirc/lircd-lirc0
 muhpid=/var/run/lirc/lircd-lirc0.pid
 muhconf=/etc/lirc/lircd.conf
+#loglevel=warning
+loglevel=trace1
 
 if [[ $EUID != 0 ]]; then
 	echo "Need to be rewt to kill/restart lircd l0l"
@@ -14,4 +16,7 @@ fi
 
 kill $(ps aux | grep "$lircd" | grep -v grep | awk '{print $2}') 2>/dev/null
 sleep 3
+
+# Depending on version, --loglevel may not be available lol
+#"$lircd" --driver=default --device="$irdev" --uinput --output="$irsock" --pidfile="$muhpid" --loglevel="$loglevel" "$muhconf"
 "$lircd" --driver=default --device="$irdev" --uinput --output="$irsock" --pidfile="$muhpid" "$muhconf"

lircd/samsung_lt22c300.conf → lircd/samsung_lt22c300_tv.conf