diff -Naur byobu-3.29.old/etc/byobu/socketdir byobu-3.29/etc/byobu/socketdir
--- byobu-3.29.old/etc/byobu/socketdir 2011-02-27 17:46:42.696667470 +0100
+++ byobu-3.29/etc/byobu/socketdir 2011-02-27 17:47:35.220000874 +0100
@@ -7,4 +7,4 @@
# * the variable name is SOCKETDIR
# * there is no space around the "="
# * and that the path value is quoted
-SOCKETDIR="/var/run/screen"
+SOCKETDIR="/tmp/screens"
diff -Naur byobu-3.29.old/etc/byobu/statusrc byobu-3.29/etc/byobu/statusrc
--- byobu-3.29.old/etc/byobu/statusrc 2011-02-27 17:46:42.696667470 +0100
+++ byobu-3.29/etc/byobu/statusrc 2011-02-27 19:23:23.486667886 +0100
@@ -45,15 +45,16 @@
processes=0
raid=1
rcs_cost=0
-reboot_required=1
+reboot_required=0
release=1
-services=1
+services=0
swap=0
time=1
time_binary=0
time_utc=0
+trash=0
users=0
-updates_available=1
+updates_available=0
uptime=1
whoami=1
wifi_quality=0
@@ -67,4 +68,5 @@
#TEMP=F
#DISTRO=Ubuntu
#SERVICES="eucalyptus-nc|NC eucalyptus-cloud|CLC eucalyptus-walrus eucalyptus-cc|CC eucalyptus-sc|SC"
+NETWORK_UNITS=bytes
# END_CUT_HERE
diff -Naur byobu-3.29.old/usr/bin/byobu-config byobu-3.29/usr/bin/byobu-config
--- byobu-3.29.old/usr/bin/byobu-config 2011-02-27 17:46:42.700000803 +0100
+++ byobu-3.29/usr/bin/byobu-config 2011-02-27 18:38:27.233334223 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
#
# byobu-config
# Copyright (C) 2008 Canonical Ltd.
diff -Naur byobu-3.29.old/usr/bin/byobu-select-session byobu-3.29/usr/bin/byobu-select-session
--- byobu-3.29.old/usr/bin/byobu-select-session 2011-02-27 17:46:42.700000803 +0100
+++ byobu-3.29/usr/bin/byobu-select-session 2011-02-27 18:38:44.926667819 +0100
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python2
#
# byobu-select-session
# Copyright (C) 2010 Canonical Ltd.
diff -Naur byobu-3.29.old/usr/lib/byobu/cpu_temp byobu-3.29/usr/lib/byobu/cpu_temp
--- byobu-3.29.old/usr/lib/byobu/cpu_temp 2011-02-27 17:46:42.700000803 +0100
+++ byobu-3.29/usr/lib/byobu/cpu_temp 2011-02-27 18:10:35.823337428 +0100
@@ -23,6 +23,7 @@
[ "$UTF8" = "1" ] && ICON_C="℃" || ICON_C="C"
[ "$UTF8" = "1" ] && ICON_F="℉" || ICON_F="F"
+# Archlinux: this doesn't exist on recent linux kernel (aka Arch's current 2.6.37)
DIR="/proc/acpi/thermal_zone"
if [ "$1" = "--detail" ] && [ -d "$DIR" ]; then
for i in "$DIR"/*; do
@@ -33,6 +34,7 @@
exit 0
fi
+# Archlinux: same here, /proc/acpi/ibm doesn't exist on Arch
for i in $MONITORED_TEMP /sys/class/hwmon/hwmon*/temp*_input /proc/acpi/ibm/thermal $DIR/*/temperature; do
case "$i" in
*temp*_input)
diff -Naur byobu-3.29.old/usr/lib/byobu/custom byobu-3.29/usr/lib/byobu/custom
--- byobu-3.29.old/usr/lib/byobu/custom 2011-02-27 17:46:42.700000803 +0100
+++ byobu-3.29/usr/lib/byobu/custom 2011-02-27 18:11:18.513334145 +0100
@@ -23,7 +23,7 @@
[ -d "$DATA/bin" ] || exit 0
color 2>/dev/null || color() { true; }
-[ -d "/var/run/screen/S-$USER" ] && DIR="/var/run/screen/S-$USER" || DIR="$DATA"
+[ -d "/tmp/screens/S-$USER" ] && DIR="/tmp/screens/S-$USER" || DIR="$DATA"
NOW=$(date +%s)
CACHE="$DIR/$PKG.custom"
diff -Naur byobu-3.29.old/usr/lib/byobu/disk_io byobu-3.29/usr/lib/byobu/disk_io
--- byobu-3.29.old/usr/lib/byobu/disk_io 2011-02-27 17:46:42.700000803 +0100
+++ byobu-3.29/usr/lib/byobu/disk_io 2011-02-27 18:13:48.966667471 +0100
@@ -40,7 +40,7 @@
exit 0
fi
-[ -d "/var/run/screen/S-$USER" ] && DIR="/var/run/screen/S-$USER" || DIR="$DATA"
+[ -d "/tmp/screens/S-$USER" ] && DIR="/tmp/screens/S-$USER" || DIR="$DATA"
t2=`date +%s`
for i in "read" "write"; do
cache="$DIR/$PKG.disk_$i"
diff -Naur byobu-3.29.old/usr/lib/byobu/hostname byobu-3.29/usr/lib/byobu/hostname
--- byobu-3.29.old/usr/lib/byobu/hostname 2011-02-27 17:46:42.700000803 +0100
+++ byobu-3.29/usr/lib/byobu/hostname 2011-02-27 18:17:17.010001103 +0100
@@ -29,4 +29,4 @@
. "$DATA/status"
[ "$whoami" = "1" ] && at="@"
-printf "$(color bold2)%s%s$(color -)" "$at" $(hostname -s 2>/dev/null || hostname)
+printf "$(color bold2)%s%s$(color -)" "$at" $(hostname 2>/dev/null)
diff -Naur byobu-3.29.old/usr/lib/byobu/ip_address byobu-3.29/usr/lib/byobu/ip_address
--- byobu-3.29.old/usr/lib/byobu/ip_address 2011-02-27 17:46:42.700000803 +0100
+++ byobu-3.29/usr/lib/byobu/ip_address 2011-02-27 17:57:30.266667465 +0100
@@ -23,8 +23,8 @@
if [ "$1" = "--detail" ]; then
[ -x /sbin/ifconfig ] && /sbin/ifconfig
- /sbin/ip -4 addr list
- /sbin/ip -6 addr list
+ /usr/sbin/ip -4 addr list
+ /usr/sbin/ip -6 addr list
exit 0
fi
@@ -44,14 +44,14 @@
case "$IPV6" in
1|true|yes)
- ipaddr=$(LC_ALL=C /sbin/ip -6 addr list dev "$interface" scope global)
+ ipaddr=$(LC_ALL=C /usr/sbin/ip -6 addr list dev "$interface" scope global)
# Print 'None' if we have no global address
[ -z "$ipaddr" ] && ipaddr="None"
ipaddr=${ipaddr#* inet6 }
ipaddr=${ipaddr%%/*}
;;
*)
- ipaddr=$(LC_ALL=C /sbin/ip -4 addr list dev "$interface" scope global)
+ ipaddr=$(LC_ALL=C /usr/sbin/ip -4 addr list dev "$interface" scope global)
ipaddr=${ipaddr#* inet }
ipaddr=${ipaddr%%/*}
;;
diff -Naur byobu-3.29.old/usr/lib/byobu/network byobu-3.29/usr/lib/byobu/network
--- byobu-3.29.old/usr/lib/byobu/network 2011-02-27 17:46:42.700000803 +0100
+++ byobu-3.29/usr/lib/byobu/network 2011-02-27 18:22:19.383334334 +0100
@@ -35,7 +35,7 @@
exit 0
fi
-[ -d "/var/run/screen/S-$USER" ] && DIR="/var/run/screen/S-$USER" || DIR="$DATA"
+[ -d "/tmp/screens/S-$USER" ] && DIR="/tmp/screens/S-$USER" || DIR="$DATA"
t2=`date +%s`
for i in up down; do
unit="kbps"
diff -Naur byobu-3.29.old/usr/lib/byobu/reboot_required byobu-3.29/usr/lib/byobu/reboot_required
--- byobu-3.29.old/usr/lib/byobu/reboot_required 2011-02-27 17:46:42.700000803 +0100
+++ byobu-3.29/usr/lib/byobu/reboot_required 2011-02-27 17:55:24.426667469 +0100
@@ -22,7 +22,7 @@
color 2>/dev/null || color() { true; }
reboot="/var/run/reboot-required"
-[ -d "/var/run/screen/S-$USER" ] && DIR="/var/run/screen/S-$USER" || DIR="$DATA"
+[ -d "/tmp/screens/S-$USER" ] && DIR="/tmp/screens/S-$USER" || DIR="$DATA"
reload="$DIR/$PKG.reload-required"
case "$1" in
--detail)
diff -Naur byobu-3.29.old/usr/lib/byobu/release byobu-3.29/usr/lib/byobu/release
--- byobu-3.29.old/usr/lib/byobu/release 2011-02-27 17:46:42.700000803 +0100
+++ byobu-3.29/usr/lib/byobu/release 2011-02-27 18:27:24.766667660 +0100
@@ -38,6 +38,9 @@
Debian*)
DISTRO="Debian $(cat /etc/debian_version)"
;;
+ Arch*)
+ DISTRO="ArchLinux"
+ ;;
*)
DISTRO=$(echo "$issue" | sed "s/ [^0-9]* / /" | awk '{print $1 " " $2}')
;;
diff -Naur byobu-3.29.old/usr/lib/byobu/updates_available byobu-3.29/usr/lib/byobu/updates_available
--- byobu-3.29.old/usr/lib/byobu/updates_available 2011-02-27 17:46:42.700000803 +0100
+++ byobu-3.29/usr/lib/byobu/updates_available 2011-02-27 18:35:00.633334391 +0100
@@ -17,6 +17,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# Archlinux: this is clearly apt-dependant, thus unadapted for Arch
+
PKG="byobu"
DATA="$HOME/.$PKG"
color 2>/dev/null || color() { true; }
@@ -81,7 +83,7 @@
# I would welcome contributions from other distros to make this
# more distro-agnostic.
-[ -d "/var/run/screen/S-$USER" ] && DIR="/var/run/screen/S-$USER" || DIR="$DATA"
+[ -d "/tmp/screens/S-$USER" ] && DIR="/tmp/screens/S-$USER" || DIR="$DATA"
mycache="$DIR/$PKG.updates-available"
# If mycache is present, use it
diff -Naur byobu-3.29.old/usr/lib/byobu/wifi_quality byobu-3.29/usr/lib/byobu/wifi_quality
--- byobu-3.29.old/usr/lib/byobu/wifi_quality 2011-02-27 17:46:42.700000803 +0100
+++ byobu-3.29/usr/lib/byobu/wifi_quality 2011-02-27 17:51:57.373334138 +0100
@@ -22,11 +22,11 @@
[ "$UTF8" = "1" ] && ICON="⚚" || ICON=
if [ "$1" = "--detail" ]; then
- /sbin/iwconfig 2>/dev/null
+ /usr/sbin/iwconfig 2>/dev/null
exit 0
fi
-iwconfig=`/sbin/iwconfig $MONITORED_NETWORK 2>/dev/null`
+iwconfig=`/usr/sbin/iwconfig $MONITORED_NETWORK 2>/dev/null`
bitrate=`echo "$iwconfig" | grep "Bit Rate." | sed -e "s/^.*Bit Rate.//" -e "s/ .*$//g"`
[ -z "$bitrate" ] && bitrate="0"
quality=`echo "$iwconfig" | grep "Link Quality." | sed -e "s/^.*Link Quality.//" -e "s/ .*$//g"`