Posts

Showing posts from 2016

dd-wrt adblock startup script

Image
#ww-wrt gui Administration-Commands-Save as StartUp #!/bin/sh logger WAN up script executing if test -s /tmp/hosts0 then         rm /tmp/hosts0 fi logger Downloading hosts file curl -k https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | grep 0.0.0.0 |  sed 's/[[:space:]]*#.*$//g;' |  grep -v localhost | tr ' ' '\t' |  tr -s '\t' | tr -d '\015' | sort -u >/tmp/hosts0 grep addn-hosts /tmp/dnsmasq.conf ||  echo "addn-hosts=/tmp/hosts0" >>/tmp/dnsmasq.conf logger Restarting dnsmasq killall dnsmasq dnsmasq --conf-file=/tmp/dnsmasq.conf

Disable Touchpad on the Lenovo T530 while i use only trackpoint

Image
[risko@t520 ~]$ cat .e16/Init/disable-touchpad.sh #!/bin/sh xinput set-prop `xinput | grep "TouchPad" | gawk '{print $6}' | cut -c 4,5` "Device Enabled" 0