~ecs/dotfiles

352bfd245866e3c056953f2640d40205379f70de — Eyal Sawady 9 days ago 09cd5dd
status: drop gateway
1 files changed, 1 insertions(+), 3 deletions(-)

M bin/status
M bin/status => bin/status +1 -3
@@ 25,8 25,6 @@ while i=$((i + 1)); do
	quality=$(grep wlan0 /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')
	[ "$quality" != "" ] && quality=" $quality"

	rte="$(ip route 2>/dev/null | awk '/default/ {print " " $3; exit}')"

	bat_dir="/sys/class/power_supply"
	bat=""
	if [ $(ls "$bat_dir" | grep '\(BAT\)\|\(bq27200-0\)' | wc -l) -ne 0 ]; then


@@ 38,6 36,6 @@ while i=$((i + 1)); do

	date="$(date -u "+ %Y-%m-%d %H%M")"

	printf "%s\n" "$def$vol$ip$ssid$quality$rte$bat$date"
	printf "%s\n" "$def$vol$ip$ssid$quality$bat$date"
	sleep 10
done