sony-vaio-z-series team mailing list archive
-
sony-vaio-z-series team
-
Mailing list archive
-
Message #01029
Janitor script reports wrong version of np module
Hello list and especially Raphael,
I just came to upgrade via the janitor script and became stuck. When
checking for the version of Norbert's sony-laptop module, janitor script
reports
- installed version: "0.6"
- available version: "0.9np5"
When choosing to upgrade, there comes the error message:
Error! DKMS tree already contains: sony-laptop-zseries-0.9np5
You cannot add the same module/version combo more than once.
Error! There are no instances of module: sony-laptop
0.9np4 located in the DKMS tree.
[...]
And the script gets stuck in a (seemingly) endless loop (I aborted after a
minute).
I attach the output of
$ sony-VGN-Zseries-janitor --debug
Best regards,
Philipp
--
Philipp Blanke
This is a tracelog from "sony-VGN-Zseries-janitor --debug --xterm", pid 32147
from Tue Jan 12 20:13:25 CET 2010
=============================================================================
set:
====
BASH=/bin/bash
BASH_ALIASES=()
BASH_ARGC=([0]="2")
BASH_ARGV=([0]="--xterm" [1]="--debug")
BASH_CMDS=()
BASH_LINENO=([0]="0")
BASH_SOURCE=([0]="/usr/local/bin/sony-VGN-Zseries-janitor")
BASH_VERSINFO=([0]="4" [1]="0" [2]="33" [3]="1" [4]="release" [5]="i486-pc-linux-gnu")
BASH_VERSION='4.0.33(1)-release'
COLORTERM=gnome-terminal
DIRSTACK=()
DISPLAY=:0.0
EUID=0
GROUPS=()
HOME=/root
HOSTNAME=philipp-laptop
HOSTTYPE=i486
IFS=$' \t\n'
LANG=en_US.UTF-8
LOGNAME=root
MACHTYPE=i486-pc-linux-gnu
NEED_DISTR_CODENAME=jaunty
NEED_DISTR_DESCRIPTION='Ubuntu 9.04'
NEED_DISTR_ID=Ubuntu
NEED_DISTR_RELEASE=9.04
OLDPWD=/usr/local/bin
OPTERR=1
OPTIND=1
ORBIT_SOCKETDIR=/tmp/orbit-root
OSTYPE=linux-gnu
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
PIPESTATUS=([0]="0")
PPID=32144
PS4='+ '
PWD=/root
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:interactive-comments
SHLVL=1
SUDO_COMMAND='/usr/bin/gnome-terminal --hide-menubar --geometry=140x40-0-0 --disable-factory --title="sony-VGN-Zseries-janitor" --execute /usr/local/bin/sony-VGN-Zseries-janitor --debug --xterm'
SUDO_GID=1000
SUDO_UID=1000
SUDO_USER=philipp
TERM=xterm
UID=0
USER=root
USERNAME=root
WINDOWID=67108868
XAUTHORITY=/tmp/libgksu-56Xick/.Xauthority
_='\n\n\nset:\n===='
arguments='--debug --xterm'
b='\033[1m'
checknv=:
deb_flag=+x
debug=:
evahost=www.basyskom.org/~eva
force=false
i='\033[2m'
logdir=/var/log/sony-laptop-zseries
me=sony-VGN-Zseries-janitor
mod=sony-laptop
module=sony-laptop-zseries
must_restart_gnome=false
mydir=/usr/local/bin
myhost=global-social.net
n='\033[0m'
opt=-
packages='xserver-xorg-core libgl1-mesa-glx libgl1-mesa-dev mesa-common-dev'
preininghost=www.logic.at/people/preining/software
quiet=false
rfka=rfkill-applet
runtime=10-01-12_20:13:25
sbindir=/usr/local/sbin
sharedir=/usr/share/sony-laptop
tracelog=/var/log/sony-laptop-zseries/sony-VGN-Zseries-janitor_trace_10-01-12_20:13:25.log
u_string='sony-VGN-Zseries-janitor (http://global-social.net/sony-VGN-Z#janitor) 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686'
update_x_to=:
updateme=:
usage=false
v_q_warning=false
verbose=false
xterm=:
abort ()
{
$xterm && anykey;
exit $1
}
anykey ()
{
echo -n "Press ENTER to continue ";
read dummy;
return 0
}
name_of ()
{
name=`grep "^$1:[^:]*:$2:$3:.*" /etc/passwd | sed -e "s/^$1:[^:]*:$2:$3://" -e 's/:.*$//' -e 's/,.*$//'`;
[ -n "$name" ] && echo "$name" || echo $1
}
only_v_or_q_warning ()
{
echo -e "\n\tonly -v, --verbose or -q, --quiet is possible, not both together";
echo -en "\t";
repeat_bash_cmd 0 64 echo -n =;
echo -e "\n\n";
usage
}
repeat_bash_cmd ()
{
set +x;
local i delay="$1" cnt="$2" cmd="$3" arg1="$4" arg2="$5";
for ((i=0; i<$cnt; i++))
do
sleep $delay;
$cmd "$arg1" "$arg2";
done;
sleep $delay;
set $deb_flag
}
usage ()
{
[ -z "$1" ] || echo "$1";
echo " usage: $me [-fh[v|q]x| --help --force --debug [--quiet|--verbose]]";
echo -e "\t$b-h, --help$n this message";
echo -e "\t$b-f, --force$n force updating even if already installed";
echo -e "\t$b-q, --quiet$n be quiet (no echo)";
echo -e "\t$b-v, --verbose$n be verbose";
echo -e "\t$b-x, --debug$n create a debuglog in $logdir";
abort 1
}
dmidecode:
==========
# dmidecode 2.9
SMBIOS 2.4 present.
23 structures occupying 988 bytes.
Table at 0x000E8350.
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: INSYDE
Version: R1280M3
Release Date: 07/15/2008
ROM Size: 1536 kB
Characteristics:
PCI is supported
PNP is supported
BIOS is upgradeable
BIOS shadowing is allowed
Boot from CD is supported
Selectable boot is supported
EDD is supported
8042 keyboard services are supported (int 9h)
CGA/mono video services are supported (int 10h)
ACPI is supported
USB legacy is supported
Smart battery is supported
BIOS boot specification is supported
Function key-initiated network boot is supported
Targeted content distribution is supported
BIOS Revision: 12.80
Firmware Revision: 12.80
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: Sony Corporation
Product Name: VGN-Z11MN_B
Version: J003AZXY
Serial Number: 28277763-5000259
UUID: D3ACB8A0-B83F-11DC-9D85-001A80D669C9
Wake-up Type: Power Switch
SKU Number: N/A
Family: N/A
Handle 0x0002, DMI type 2, 10 bytes
Base Board Information
Manufacturer: Sony Corporation
Product Name: VAIO
Version: N/A
Serial Number: N/A
Handle 0x0003, DMI type 3, 17 bytes
Chassis Information
Manufacturer: Sony Corporation
Type: Notebook
Lock: Not Present
Version: N/A
Serial Number: N/A
Asset Tag: N/A
Boot-up State: Safe
Power Supply State: Safe
Thermal State: Safe
Security Status: None
OEM Information: 0x00000000
Handle 0x0004, DMI type 11, 5 bytes
OEM Strings
String 1: 0000026495
String 2: FNC-EXTB
String 3: 7KRN0000000070B4C064EB637002
String 4: Reserved
String 5: Reserved
Handle 0x0005, DMI type 27, 14 bytes
Cooling Device
Type: Unknown
Status: Unknown
OEM-specific Information: 0x00000000
Nominal Speed: Unknown Or Non-rotating
Handle 0x0006, DMI type 32, 20 bytes
System Boot Information
Status: No errors detected
Handle 0x0007, DMI type 39, 22 bytes
System Power Supply
Location: N/A
Name: N/A
Manufacturer: N/A
Serial Number: N/A
Asset Tag: N/A
Model Part Number: N/A
Revision: N/A
Max Power Capacity: Unknown
Status: Present, Unknown
Type: Unknown
Input Voltage Range Switching: Unknown
Plugged: Yes
Hot Replaceable: Yes
Handle 0x0008, DMI type 22, 26 bytes
Portable Battery
Location: N/A
Manufacturer: N/A
Name: N/A
Design Capacity: Unknown
Design Voltage: Unknown
SBDS Version: Unknown
Maximum Error: Unknown
SBDS Serial Number: FFFF
SBDS Manufacture Date: 2008-01-01
SBDS Chemistry: Unknown
OEM-specific Information: 0x00000000
Handle 0x0009, DMI type 136, 11 bytes
OEM-specific Type
Header and Data:
88 0B 09 00 01 44 49 52 53 07 03
Strings:
Sony Corporation
Handle 0x000A, DMI type 129, 8 bytes
OEM-specific Type
Header and Data:
81 08 0A 00 01 01 02 01
Strings:
Intel_ASF
Intel_ASF_001
Handle 0x000B, DMI type 130, 20 bytes
OEM-specific Type
Header and Data:
82 14 0B 00 24 41 4D 54 01 01 01 01 01 A5 0B 03
00 00 00 00
Handle 0x000C, DMI type 131, 64 bytes
OEM-specific Type
Header and Data:
83 40 0C 00 17 00 00 00 00 00 40 2A 04 00 00 00
F8 00 17 29 00 00 00 00 09 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 C8 00 F5 10 00 00 00 FF
00 00 00 00 10 00 00 00 76 50 72 6F 00 00 00 00
Handle 0x000D, DMI type 4, 35 bytes
Processor Information
Socket Designation: N/A
Type: Central Processor
Family: Other
Manufacturer: GenuineIntel
ID: 76 06 01 00 FF FB EB BF
Version: Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz
Voltage: 1.3 V
External Clock: 266 MHz
Max Speed: 2266 MHz
Current Speed: 2266 MHz
Status: Populated, Enabled
Upgrade: None
L1 Cache Handle: 0x000F
L2 Cache Handle: 0x000E
L3 Cache Handle: Not Provided
Serial Number: N/A
Asset Tag: N/A
Part Number: N/A
Handle 0x000E, DMI type 7, 19 bytes
Cache Information
Socket Designation: L2 Cache
Configuration: Enabled, Not Socketed, Level 2
Operational Mode: Write Back
Location: Internal
Installed Size: 3072 KB
Maximum Size: 3072 KB
Supported SRAM Types:
Synchronous
Installed SRAM Type: Synchronous
Speed: Unknown
Error Correction Type: Single-bit ECC
System Type: Unified
Associativity: <OUT OF SPEC>
Handle 0x000F, DMI type 7, 19 bytes
Cache Information
Socket Designation: L1 Cache
Configuration: Enabled, Not Socketed, Level 1
Operational Mode: Write Back
Location: Internal
Installed Size: 128 KB
Maximum Size: 128 KB
Supported SRAM Types:
Synchronous
Installed SRAM Type: Synchronous
Speed: Unknown
Error Correction Type: Single-bit ECC
System Type: Other
Associativity: 8-way Set-associative
Handle 0x0010, DMI type 16, 15 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 2048 GB
Error Information Handle: Not Provided
Number Of Devices: 2
Handle 0x0011, DMI type 17, 25 bytes
Memory Device
Array Handle: 0x0010
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 2048 MB
Form Factor: SODIMM
Set: None
Locator: SODIMM1
Bank Locator: BANK 0
Type: Unknown
Type Detail: Unknown
Speed: 1067 MHz (0.9 ns)
Handle 0x0012, DMI type 20, 19 bytes
Memory Device Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x0007FFFFFFF
Range Size: 2 GB
Physical Device Handle: 0x0011
Memory Array Mapped Address Handle: 0x0015
Partition Row Position: Unknown
Interleave Position: Unknown
Interleaved Data Depth: Unknown
Handle 0x0013, DMI type 17, 25 bytes
Memory Device
Array Handle: 0x0010
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 2048 MB
Form Factor: SODIMM
Set: None
Locator: SODIMM2
Bank Locator: BANK 1
Type: Unknown
Type Detail: Unknown
Speed: 1067 MHz (0.9 ns)
Handle 0x0014, DMI type 20, 19 bytes
Memory Device Mapped Address
Starting Address: 0x00080000000
Ending Address: 0x000FFFFFFFF
Range Size: 2 GB
Physical Device Handle: 0x0013
Memory Array Mapped Address Handle: 0x0015
Partition Row Position: Unknown
Interleave Position: Unknown
Interleaved Data Depth: Unknown
Handle 0x0015, DMI type 19, 15 bytes
Memory Array Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x000FFFFFFFF
Range Size: 4 GB
Physical Array Handle: 0x0010
Partition Width: 0
Handle 0x0016, DMI type 127, 4 bytes
End Of Table
script:
======
+ '[' -d /dev/fd ']'
++ repeat_bash_cmd 0 39 echo -n ' *'
++ set +x
+ stars=' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *'
++ repeat_bash_cmd 0 75 echo -n ' '
++ set +x
+ star1=' * *'
++ repeat_bash_cmd 0 71 echo -n ' '
++ set +x
+ star2=' * * * *'
+ diemsg=
+ install_deb gawk
+ local deb=gawk
+ is_installed gawk
+ local deb=gawk
++ dpkg-query -W '-f=${Status}' gawk
+ '[' 'install ok installed' = 'install ok installed' ']'
+ return 0
+ is_installed gawk
+ local deb=gawk
++ dpkg-query -W '-f=${Status}' gawk
+ '[' 'install ok installed' = 'install ok installed' ']'
+ return 0
++ lspci -n
++ gawk '$2 == "0300:" && $3 ~ /^10de:[[:xdigit:]]+$/ { lsgc += 2 }
$2 == "0300:" && $3 ~ /^8086:[[:xdigit:]]+$/ { lsgc += 1 }
END { print lsgc }'
+ mode=2
+ :
+ say_hello_world
++ name_of philipp 1000 1000
+++ grep '^philipp:[^:]*:1000:1000:.*' /etc/passwd
+++ sed -e 's/^philipp:[^:]*:1000:1000://' -e 's/:.*$//' -e 's/,.*$//'
++ name='Philipp Blanke'
++ '[' -n 'Philipp Blanke' ']'
++ echo 'Philipp Blanke'
+ user_name='Philipp Blanke'
+++ expr 67 - 14
++ repeat_bash_cmd 0 53 echo -n ' '
++ set +x
+ echo -e ' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n * *\n * Hello \033[1mPhilipp Blanke\033[0m, *\n * *'
+ echo -e ' * I hope this script will be helpfull to you. If you encounter trouble *'
+ echo -e ' * with it, please don'\''t hesitate to ask for help on the sony-vaio-z-series *'
+ echo -e ' * mailinglist:\033[1m https://launchpad.net/~sony-vaio-z-series\033[0m *'
+ echo -e ' * Simply mail your questions to\033[1m sony-vaio-z-series@xxxxxxxxxxxxxxxxxxx\033[0m. *'
+ echo -e ' * The host of this script is\033[1m http://global-social.net/VGN-Z\033[0m *'
+ echo -e ' * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n * * * *'
+ echo -e ' * * \033[1m If you run this script for the first time on this system, ensure\033[0m * *'
+ echo -e ' * * \033[1m first that you have removed all previous switch mechanisms.\033[0m * *'
+ echo -e ' * * * *\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *'
++ uname -r
++ sed 's/-.*//'
++ gawk -F . '{ print $1 $2 $3 }'
+ '[' 2631 -lt 2628 ']'
+ check_distrib
+ '[' -f /etc/lsb-release ']'
+ . /etc/lsb-release
++ DISTRIB_ID=Ubuntu
++ DISTRIB_RELEASE=9.10
++ DISTRIB_CODENAME=karmic
++ DISTRIB_DESCRIPTION='Ubuntu 9.10'
++ echo 9.04
++ sed 's/[^[:digit:]]//g'
+ NDR=0904
++ echo 9.10
++ sed 's/[^[:digit:]]//g'
+ DR=0910
+ case $DISTRIB_ID in
+ '[' 0910 -lt 0904 ']'
+ '[' 0910 -gt 0904 ']'
+ msg1
+++ expr 32 - 6 - 4 - 6
++ repeat_bash_cmd 0 16 notquiet -n ' '
++ set +x
+ notquiet ' * This script was created for Ubuntu 9.04, Codename "jaunty" *'
+ false
+ echo ' * This script was created for Ubuntu 9.04, Codename "jaunty" *' ''
+ return 0
+ msg2
+ local cmd=
+ notquiet -n ' * you are running Ubuntu 9.10, Codename "karmic"'
+ false
+ echo -n ' * you are running Ubuntu 9.10, Codename "karmic"'
+ return 0
+ '[' -z '' ']'
+++ expr 44 - 6 - 4 - 6
++ repeat_bash_cmd 0 28 notquiet -n ' '
++ set +x
+ notquiet ' *'
+ false
+ echo ' *' ''
+ return 0
+++ expr 26 - 6
++ repeat_bash_cmd 0 20 notquiet -n ' '
++ set +x
+ notquiet -e ' * OK, that one is newer than jaunty and supported. \033[1mGood!\033[0m *'
+ false
+ echo -e ' * OK, that one is newer than jaunty and supported. \033[1mGood!\033[0m *'
+ return 0
+ anykey
+ echo -n 'Press ENTER to continue '
+ read dummy
+ return 0
+ update_aptget_sources
+ notquiet -e '\n resynchronizing the package index files from apt-sources.'
+ false
+ echo -e '\n resynchronizing the package index files from apt-sources.'
+ return 0
+ myecho -en ' -\033[2m apt-get -qq update\033[0m ...'
+ false
+ return 0
++ mktemp
+ diemsg=/tmp/tmp.KjNzt6nEln
++ mktemp
+ tmpjob=/tmp/tmp.FZDisQiP8L
+ jobs
+ apt-get -qq update
+ grep -qs 'apt-get -qq update >.*[^&]$' /tmp/tmp.FZDisQiP8L
+ myecho -n .
+ false
+ return 0
+ sleep 1
+ jobs
+ grep -qs 'apt-get -qq update >.*[^&]$' /tmp/tmp.FZDisQiP8L
+ myecho -n .
+ false
+ return 0
+ sleep 1
+ jobs
+ grep -qs 'apt-get -qq update >.*[^&]$' /tmp/tmp.FZDisQiP8L
+ myecho -n .
+ false
+ return 0
+ sleep 1
+ jobs
+ grep -qs 'apt-get -qq update >.*[^&]$' /tmp/tmp.FZDisQiP8L
+ myecho -n .
+ false
+ return 0
+ sleep 1
+ jobs
+ grep -qs 'apt-get -qq update >.*[^&]$' /tmp/tmp.FZDisQiP8L
+ grep -qs 'Exit[[:space:]][[:digit:]]' /tmp/tmp.FZDisQiP8L
+ myecho ' finished'
+ false
+ return 0
+ remove /tmp/tmp.FZDisQiP8L
+ '[' -L /tmp/tmp.FZDisQiP8L ']'
+ '[' -f /tmp/tmp.FZDisQiP8L ']'
+ rm -f /tmp/tmp.FZDisQiP8L
+ false
+ '[' -d /tmp/tmp.FZDisQiP8L ']'
+ return 0
+ remove /tmp/tmp.KjNzt6nEln
+ '[' -L /tmp/tmp.KjNzt6nEln ']'
+ '[' -f /tmp/tmp.KjNzt6nEln ']'
+ rm -f /tmp/tmp.KjNzt6nEln
+ false
+ '[' -d /tmp/tmp.KjNzt6nEln ']'
+ return 0
+ check_barremetal
+ install_deb dmidecode
+ local deb=dmidecode
+ is_installed dmidecode
+ local deb=dmidecode
++ dpkg-query -W '-f=${Status}' dmidecode
+ '[' 'install ok installed' = 'install ok installed' ']'
+ return 0
+ is_installed dmidecode
+ local deb=dmidecode
++ dpkg-query -W '-f=${Status}' dmidecode
+ '[' 'install ok installed' = 'install ok installed' ']'
+ return 0
++ dmidecode -s system-manufacturer
+ system_manufacturer='Sony Corporation'
+ echo 'Sony Corporation'
+ grep -qs '^[[:space:]]*$'
++ dmidecode -s baseboard-product-name
+ baseboard_product_name=VAIO
+ echo VAIO
+ grep -qs '^[[:space:]]*$'
++ dmidecode -s system-product-name
+ system_product_name=VGN-Z11MN_B
+ echo VGN-Z11MN_B
+ grep -qs '^[[:space:]]*$'
++ dmidecode -s bios-vendor
+ bios_vendor=INSYDE
++ dmidecode -s bios-version
+ bios_version=R1280M3
++ dmidecode -s bios-release-date
+ bios_release_date=07/15/2008
+ [[ Sony Corporation == Sony\ Corporation ]]
+ sony=:
+ manufacturer=Sony
+ [[ VAIO == VAIO ]]
+ vaio=:
+ [[ VGN-Z11MN_B == *VGN-Z* ]]
+ vgnz=:
+ e1=' * This script is for Sony Vaio VGN-Z Series laptops with hybrid graphics *'
+ e2=' * You are running a Sony Corporation system'
+ e3='. Exit script'
+ :
+ :
+ :
+ :
+ :
+ :
+++ expr 34 - 11 - 6 - 7
++ repeat_bash_cmd 0 10 notquiet -n ' '
++ set +x
+ echo -e ' * This is a Sony VAIO \033[1mVGN-Z11MN_B\033[0m with INSYDE BIOS Version \033[1mR1280M3\033[0m *'
+ echo R1280M3
+ grep -qs 'R[0-9]\{4\}M3'
++ repeat_bash_cmd 0 24 notquiet -n ' '
++ set +x
+ echo -e ' * For the moment this looks good enough to proceed.. *'
+ anykey
+ echo -n 'Press ENTER to continue '
+ read dummy
+ return 0
+ unset e1 e2 e3
+ '[' -z '' ']'
+ debian_version='Ubuntu/9.10 (karmic)'
+ u_string='sony-VGN-Zseries-janitor (http://global-social.net/sony-VGN-Z#janitor) 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 Ubuntu/9.10 (karmic) VGN-Z11MN_B R1280M3'
+ :
+ is_host_online global-social.net
+ local host=global-social.net r=1
+ ping -qc 1 global-social.net
+ r=0
+ return 0
+ tmp_me_new=
+ server_me='tiki-download_file.php?fileId=3'
+ '[' x = x ']'
++ mktemp -d
+ cookie=/tmp/tmp.bzeBoNDGA4/10-01-12_20:13:25-philipp@xxxxxxxxxxxxxxxxx
++ mktemp -d
+ wget -P /tmp/tmp.eHjhtKwBzh --save-cookies /tmp/tmp.bzeBoNDGA4/10-01-12_20:13:25-philipp@xxxxxxxxxxxxxxxxx --keep-session-cookies -U 'sony-VGN-Zseries-janitor (http://global-social.net/sony-VGN-Z#janitor) 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 Ubuntu/9.10 (karmic) VGN-Z11MN_B R1280M3' 'http://global-social.net/tiki-download_file.php?fileId=3'
++ date_from /usr/local/bin/sony-VGN-Zseries-janitor
++ local from=/usr/local/bin/sony-VGN-Zseries-janitor d t
++++ grep '^# Last changes:' /usr/local/bin/sony-VGN-Zseries-janitor
++++ gawk '{ print $4 }'
+++ sort_date_tokens 12.01.2010
+++ echo 12.01.2010
+++ gawk 'BEGIN { FS="[-|/|.|:]"; fmt = "%04d%02d%02d\n" }
length($1) == 4 { printf(fmt,$1,$2,$3) }
length($3) == 4 { printf(fmt,$3,$2,$1) }'
++ d=20100112
+++ grep '^# Last changes:' /usr/local/bin/sony-VGN-Zseries-janitor
+++ gawk '{ print $5 }'
+++ sed s/://
++ t=1807
++ echo 201001121807
++ date_from '/tmp/tmp.eHjhtKwBzh/tiki-download_file.php?fileId=3'
++ local 'from=/tmp/tmp.eHjhtKwBzh/tiki-download_file.php?fileId=3' d t
++++ grep '^# Last changes:' '/tmp/tmp.eHjhtKwBzh/tiki-download_file.php?fileId=3'
++++ gawk '{ print $4 }'
+++ sort_date_tokens 12.01.2010
+++ echo 12.01.2010
+++ gawk 'BEGIN { FS="[-|/|.|:]"; fmt = "%04d%02d%02d\n" }
length($1) == 4 { printf(fmt,$1,$2,$3) }
length($3) == 4 { printf(fmt,$3,$2,$1) }'
++ d=20100112
+++ grep '^# Last changes:' '/tmp/tmp.eHjhtKwBzh/tiki-download_file.php?fileId=3'
+++ sed s/://
+++ gawk '{ print $5 }'
++ t=1807
++ echo 201001121807
+ '[' 0201001121807 -lt 0201001121807 ']'
+ remove /tmp/tmp.eHjhtKwBzh/
+ '[' -L /tmp/tmp.eHjhtKwBzh/ ']'
+ '[' -f /tmp/tmp.eHjhtKwBzh/ ']'
+ '[' -d /tmp/tmp.eHjhtKwBzh/ ']'
+ rm -fr /tmp/tmp.eHjhtKwBzh/
+ false
+ return 0
++ grep '^# Last changes:' /usr/local/bin/sony-VGN-Zseries-janitor
+ mydate='# Last changes: 12.01.2010 18:07'
+ mkdir -p /usr/share/sony-laptop
+ '[' -f /usr/share/sony-laptop/vaio.png ']'
++ eval echo '~philipp'
+++ echo /home/philipp
+ '[' -f /home/philipp/Desktop/vgn-zseries-janitor.desktop ']'
+ dlaunch=:
+ '[' -f /usr/share/applications/vgn-zseries-janitor.desktop ']'
+ alaunch=:
+ :
+ :
+ :
+ create_desktopfile alaunch
++ eval echo '~philipp'
+++ echo /home/philipp
+ '[' -f /home/philipp/.config/user-dirs.dirs ']'
++ eval echo '~philipp'
+++ echo /home/philipp
+ . /home/philipp/.config/user-dirs.dirs
++ XDG_DESKTOP_DIR=/root/Desktop
++ XDG_DOWNLOAD_DIR=/root/Downloads
++ XDG_TEMPLATES_DIR=/root/Templates
++ XDG_PUBLICSHARE_DIR=/root/Public
++ XDG_DOCUMENTS_DIR=/root/Documents
++ XDG_MUSIC_DIR=/root/Music
++ XDG_PICTURES_DIR=/root/Pictures
++ XDG_VIDEOS_DIR=/root/Videos
+ local_desktop=Desktop
++ eval echo '~philipp'
+++ echo /home/philipp
+ dlaunchfile=/home/philipp/Desktop/vgn-zseries-janitor.desktop
+ echo alaunch
+ grep -Eqs 'dlaunch|all'
+ echo alaunch
+ grep -Eqs 'alaunch|all'
+ alaunchfile=/usr/share/applications/vgn-zseries-janitor.desktop
+ cat
+ alaunch=:
+ create_desktopfile dlaunch
++ eval echo '~philipp'
+++ echo /home/philipp
+ '[' -f /home/philipp/.config/user-dirs.dirs ']'
++ eval echo '~philipp'
+++ echo /home/philipp
+ . /home/philipp/.config/user-dirs.dirs
++ XDG_DESKTOP_DIR=/root/Desktop
++ XDG_DOWNLOAD_DIR=/root/Downloads
++ XDG_TEMPLATES_DIR=/root/Templates
++ XDG_PUBLICSHARE_DIR=/root/Public
++ XDG_DOCUMENTS_DIR=/root/Documents
++ XDG_MUSIC_DIR=/root/Music
++ XDG_PICTURES_DIR=/root/Pictures
++ XDG_VIDEOS_DIR=/root/Videos
+ local_desktop=Desktop
++ eval echo '~philipp'
+++ echo /home/philipp
+ dlaunchfile=/home/philipp/Desktop/vgn-zseries-janitor.desktop
+ echo dlaunch
+ grep -Eqs 'dlaunch|all'
+ cat
+ chmod +x /home/philipp/Desktop/vgn-zseries-janitor.desktop
+ chown 1000:1000 /home/philipp/Desktop/vgn-zseries-janitor.desktop
+ dlaunch=:
+ echo dlaunch
+ grep -Eqs 'alaunch|all'
+ libGL=libGL.so.1
+ libGLdir=/usr/lib
+ '[' -f /usr/lib/mesa/libGL.so.1 ']'
+ libGL=/usr/lib/libGL.so.1
++ uname -m
+ arch=i686
+ lib32GL=
+ echo i686
+ grep -qs '^i[3-6]\{1\}86$'
+ arch=x86
+ '[' x86 = x86_64 ']'
+ libglx=/usr/lib/xorg/modules/extension/libglx.so
+ install_deb dkms
+ local deb=dkms
+ is_installed dkms
+ local deb=dkms
++ dpkg-query -W '-f=${Status}' dkms
+ '[' 'install ok installed' = 'install ok installed' ']'
+ return 0
+ is_installed dkms
+ local deb=dkms
++ dpkg-query -W '-f=${Status}' dkms
+ '[' 'install ok installed' = 'install ok installed' ']'
+ return 0
+ '[' -f /usr/lib/dkms/dkms_autoinstaller ']'
+ '[' -f /etc/init.d/dkms_autoinstaller ']'
+ dkms_autoinstaller=/etc/init.d/dkms_autoinstaller
+ nv_url=ftp://download.nvidia.com/XFree86/Linux-x86
+ nvbuplog=/var/lib/nvidia/log
+ nv_latest_stable_version=unknown
+ nv_latest_stable_filename=unknown
++ mktemp -d
+ wget -P /tmp/tmp.kx05SBjGwV -U 'sony-VGN-Zseries-janitor (http://global-social.net/sony-VGN-Z#janitor) 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 Ubuntu/9.10 (karmic) VGN-Z11MN_B R1280M3' http://www.logic.at/people/preining/software/index.html
++ strip_filename sony-laptop-zseries /tmp/tmp.kx05SBjGwV/index.html
++ grep 'Current.*sony-laptop-zseries' /tmp/tmp.kx05SBjGwV/index.html
++ sed -e 's/[^=]*=//' -e 's/>.*//' -e 's/"//g'
+ modtarbal=sony-laptop-zseries-0.9np5.tar.gz
++ strip_filename rfkill-applet /tmp/tmp.kx05SBjGwV/index.html
++ grep 'Current.*rfkill-applet' /tmp/tmp.kx05SBjGwV/index.html
++ sed -e 's/[^=]*=//' -e 's/>.*//' -e 's/"//g'
+ rfkatarbal=rfkill-applet-0.6.tar.gz
++ remove_file_extension sony-laptop-zseries-0.9np5.tar.gz
++ echo sony-laptop-zseries-0.9np5.tar.gz
++ sed -e 's/\.tar\.\{0,1\}[^\.]*//' -e 's/\.t\{0,1\}[abglx]\{0,1\}[zZ]\{1\}2\{0,1\}o\{0,1\}\(ma\)\{0,1\}//'
++ sed s/sony-laptop-zseries-//
+ moduleversion=0.9np5
++ remove_file_extension rfkill-applet-0.6.tar.gz
++ echo rfkill-applet-0.6.tar.gz
++ sed -e 's/\.tar\.\{0,1\}[^\.]*//' -e 's/\.t\{0,1\}[abglx]\{0,1\}[zZ]\{1\}2\{0,1\}o\{0,1\}\(ma\)\{0,1\}//'
++ sed s/rfkill-applet-//
+ rfkaversion=0.6
+ remove /tmp/tmp.kx05SBjGwV
+ '[' -L /tmp/tmp.kx05SBjGwV ']'
+ '[' -f /tmp/tmp.kx05SBjGwV ']'
+ '[' -d /tmp/tmp.kx05SBjGwV ']'
+ rm -fr /tmp/tmp.kx05SBjGwV
+ false
+ return 0
++ uname -r
++ sed 's/-.*//'
++ gawk -F . '{ print $3 }'
+ '[' 31 -lt 31 ']'
+ Last_switch_x_to='12.01.2010 18:06'
+ Last_reset_x_to_nvidia='12.01.2010 18:06'
+ Last_nvidia_settings='12.01.2010 18:06'
+ notquiet -en '\n OK, lets go:\n '
+ false
+ echo -en '\n OK, lets go:\n '
+ return 0
+ repeat_bash_cmd 0.01 12 notquiet -n =
+ set +x
+ notquiet
+ false
+ echo '' ''
+ return 0
+ available_updates=
+ needed_to_download=
+ :
+ :
+ check_update switch-x-to 'tiki-download_file.php?fileId=2' /usr/share/sony-laptop /usr/local/sbin
+ tmp_upd_new=
+ upd=switch-x-to
+ server_upd='tiki-download_file.php?fileId=2'
+ localdir=/usr/share/sony-laptop
+ symlinkdir=/usr/local/sbin
+ r=1
+ defaultchanged=false
+ mkdir -p /usr/share/sony-laptop
+ notquiet -e '\n check the version of "\033[1m/usr/share/sony-laptop/switch-x-to\033[0m"'
+ false
+ echo -e '\n check the version of "\033[1m/usr/share/sony-laptop/switch-x-to\033[0m"'
+ return 0
+ is_host_online global-social.net
+ local host=global-social.net r=1
+ ping -qc 1 global-social.net
+ r=0
+ return 0
+ '[' -f /tmp/tmp.bzeBoNDGA4/10-01-12_20:13:25-philipp@xxxxxxxxxxxxxxxxx ']'
+ load_cookie='--load-cookies /tmp/tmp.bzeBoNDGA4/10-01-12_20:13:25-philipp@xxxxxxxxxxxxxxxxx'
++ mktemp -d
+ wget -P /tmp/tmp.LiIbraRKRN --load-cookies /tmp/tmp.bzeBoNDGA4/10-01-12_20:13:25-philipp@xxxxxxxxxxxxxxxxx -U 'sony-VGN-Zseries-janitor (http://global-social.net/sony-VGN-Z#janitor) 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 Ubuntu/9.10 (karmic) VGN-Z11MN_B R1280M3' 'http://global-social.net/tiki-download_file.php?fileId=2'
+ '[' -f /usr/share/sony-laptop/switch-x-to ']'
++ unparsed_date_from /usr/share/sony-laptop/switch-x-to
++ grep '^# Last changes:' /usr/share/sony-laptop/switch-x-to
++ gawk '{ print $4 "_" $5 }'
+ installed_version 12.01.2010_18:11
+ notquiet -e ' - installed version: "\033[1m12.01.2010_18:11\033[0m"'
+ false
+ echo -e ' - installed version: "\033[1m12.01.2010_18:11\033[0m"'
+ return 0
++ unparsed_date_from '/tmp/tmp.LiIbraRKRN/tiki-download_file.php?fileId=2'
++ grep '^# Last changes:' '/tmp/tmp.LiIbraRKRN/tiki-download_file.php?fileId=2'
++ gawk '{ print $4 "_" $5 }'
+ available_version 12.01.2010_18:11
+ notquiet -e ' - available version: "\033[1m12.01.2010_18:11\033[0m"'
+ false
+ echo -e ' - available version: "\033[1m12.01.2010_18:11\033[0m"'
+ return 0
++ date_from /usr/share/sony-laptop/switch-x-to
++ local from=/usr/share/sony-laptop/switch-x-to d t
++++ grep '^# Last changes:' /usr/share/sony-laptop/switch-x-to
++++ gawk '{ print $4 }'
+++ sort_date_tokens 12.01.2010
+++ echo 12.01.2010
+++ gawk 'BEGIN { FS="[-|/|.|:]"; fmt = "%04d%02d%02d\n" }
length($1) == 4 { printf(fmt,$1,$2,$3) }
length($3) == 4 { printf(fmt,$3,$2,$1) }'
++ d=20100112
+++ grep '^# Last changes:' /usr/share/sony-laptop/switch-x-to
+++ gawk '{ print $5 }'
+++ sed s/://
++ t=1811
++ echo 201001121811
++ date_from '/tmp/tmp.LiIbraRKRN/tiki-download_file.php?fileId=2'
++ local 'from=/tmp/tmp.LiIbraRKRN/tiki-download_file.php?fileId=2' d t
++++ grep '^# Last changes:' '/tmp/tmp.LiIbraRKRN/tiki-download_file.php?fileId=2'
++++ gawk '{ print $4 }'
+++ sort_date_tokens 12.01.2010
+++ echo 12.01.2010
+++ gawk 'BEGIN { FS="[-|/|.|:]"; fmt = "%04d%02d%02d\n" }
length($1) == 4 { printf(fmt,$1,$2,$3) }
length($3) == 4 { printf(fmt,$3,$2,$1) }'
++ d=20100112
+++ grep '^# Last changes:' '/tmp/tmp.LiIbraRKRN/tiki-download_file.php?fileId=2'
+++ gawk '{ print $5 }'
+++ sed s/://
++ t=1811
++ echo 201001121811
+ '[' 0201001121811 -eq 0201001121811 ']'
+ is_newest_version 'switch-x-to script'
+ notquiet -n ' newest version of the '
+ false
+ echo -n ' newest version of the '
+ return 0
+ '[' 18 -gt 48 ']'
+ notquiet -en '\033[1mswitch-x-to script\033[0m'
+ false
+ echo -en '\033[1mswitch-x-to script\033[0m'
+ return 0
+ '[' 18 -lt 48 -a 18 -gt 29 ']'
+ '[' 18 -gt 50 ']'
+ notquiet ' already installed.'
+ false
+ echo ' already installed.' ''
+ return 0
++ date_from /usr/share/sony-laptop/switch-x-to
++ local from=/usr/share/sony-laptop/switch-x-to d t
++++ grep '^# Last changes:' /usr/share/sony-laptop/switch-x-to
++++ gawk '{ print $4 }'
+++ sort_date_tokens 12.01.2010
+++ echo 12.01.2010
+++ gawk 'BEGIN { FS="[-|/|.|:]"; fmt = "%04d%02d%02d\n" }
length($1) == 4 { printf(fmt,$1,$2,$3) }
length($3) == 4 { printf(fmt,$3,$2,$1) }'
++ d=20100112
+++ grep '^# Last changes:' /usr/share/sony-laptop/switch-x-to
+++ gawk '{ print $5 }'
+++ sed s/://
++ t=1811
++ echo 201001121811
++ date_from '/tmp/tmp.LiIbraRKRN/tiki-download_file.php?fileId=2'
++ local 'from=/tmp/tmp.LiIbraRKRN/tiki-download_file.php?fileId=2' d t
++++ grep '^# Last changes:' '/tmp/tmp.LiIbraRKRN/tiki-download_file.php?fileId=2'
++++ gawk '{ print $4 }'
+++ sort_date_tokens 12.01.2010
+++ echo 12.01.2010
+++ gawk 'BEGIN { FS="[-|/|.|:]"; fmt = "%04d%02d%02d\n" }
length($1) == 4 { printf(fmt,$1,$2,$3) }
length($3) == 4 { printf(fmt,$3,$2,$1) }'
++ d=20100112
+++ grep '^# Last changes:' '/tmp/tmp.LiIbraRKRN/tiki-download_file.php?fileId=2'
+++ sed s/://
+++ gawk '{ print $5 }'
++ t=1811
++ echo 201001121811
+ '[' 0201001121811 -lt 0201001121811 ']'
+ remove /tmp/tmp.LiIbraRKRN
+ '[' -L /tmp/tmp.LiIbraRKRN ']'
+ '[' -f /tmp/tmp.LiIbraRKRN ']'
+ '[' -d /tmp/tmp.LiIbraRKRN ']'
+ rm -fr /tmp/tmp.LiIbraRKRN
+ false
+ return 0
+ '[' -f /usr/share/sony-laptop/switch-x-to ']'
++ ls -o /usr/share/sony-laptop/switch-x-to
++ gawk '{ print $1 }'
+ [[ -rwxr--r-- == -rwxr--r-- ]]
+ '[' -d /usr/local/sbin ']'
+ '[' -h /usr/local/sbin/switch-x-to ']'
+ return 1
+ check_defaultfile false
+ upd=switch-x-to
+ '[' -r /etc/default/switch-x-to ']'
+ . /etc/default/switch-x-to
+ false
+ '[' -n '' ']'
+ '[' -z '' ']'
+ echo -e ' you may create a settings (-rc) file with \033[1mnvidia-settings\033[0m'
+ echo ' and add its path into the file "/etc/default/switch-x-to" by hand.'
+ defaultchanged=:
+ :
+ anykey
+ echo -n 'Press ENTER to continue '
+ read dummy
+ return 0
+ check_upstart_jobs
+ local no_jobs= checked_jobs= jobs= job= isupstart= script=
+ is_installed upstart
+ local deb=upstart
++ dpkg-query -W '-f=${Status}' upstart
+ '[' 'install ok installed' = 'install ok installed' ']'
+ return 0
+ '[' -d /etc/init ']'
+ jobs='/etc/init/switch-x-to.conf /etc/init/nvidia-settings.conf'
+ alternatives_in_use
+ local x11_ld_so_conf nvidia_ld_so_conf r=1
+ x11_ld_so_conf=/usr/lib/mesa/ld.so.conf
+ nvidia_ld_so_conf=/usr/lib/nvidia-current/ld.so.conf
+ '[' -f /usr/lib/mesa/ld.so.conf ']'
+ return 1
+ isupstart=:
+ script='upstart job'
+ for job in '$jobs'
+ '[' '!' -e /etc/init/switch-x-to.conf ']'
++ date_from /etc/init/switch-x-to.conf
++ local from=/etc/init/switch-x-to.conf d t
++++ grep '^# Last changes:' /etc/init/switch-x-to.conf
++++ gawk '{ print $4 }'
+++ sort_date_tokens 12.01.2010
+++ echo 12.01.2010
+++ gawk 'BEGIN { FS="[-|/|.|:]"; fmt = "%04d%02d%02d\n" }
length($1) == 4 { printf(fmt,$1,$2,$3) }
length($3) == 4 { printf(fmt,$3,$2,$1) }'
++ d=20100112
+++ grep '^# Last changes:' /etc/init/switch-x-to.conf
+++ sed s/://
+++ gawk '{ print $5 }'
++ t=1806
++ echo 201001121806
+++ basename /etc/init/switch-x-to.conf .conf
+++ sed s/-/_/g
++ eval sub_date_from '$Last_switch_x_to'
+++ sub_date_from 12.01.2010 18:06
+++ local d t
++++ sort_date_tokens 12.01.2010
++++ echo 12.01.2010
++++ gawk 'BEGIN { FS="[-|/|.|:]"; fmt = "%04d%02d%02d\n" }
length($1) == 4 { printf(fmt,$1,$2,$3) }
length($3) == 4 { printf(fmt,$3,$2,$1) }'
+++ d=20100112
++++ echo 18:06
++++ sed s/://
+++ t=1806
+++ echo 201001121806
+ '[' 0201001121806 -lt 0201001121806 ']'
+ for job in '$jobs'
+ '[' '!' -e /etc/init/nvidia-settings.conf ']'
++ date_from /etc/init/nvidia-settings.conf
++ local from=/etc/init/nvidia-settings.conf d t
++++ grep '^# Last changes:' /etc/init/nvidia-settings.conf
++++ gawk '{ print $4 }'
+++ sort_date_tokens 12.01.2010
+++ echo 12.01.2010
+++ gawk 'BEGIN { FS="[-|/|.|:]"; fmt = "%04d%02d%02d\n" }
length($1) == 4 { printf(fmt,$1,$2,$3) }
length($3) == 4 { printf(fmt,$3,$2,$1) }'
++ d=20100112
+++ grep '^# Last changes:' /etc/init/nvidia-settings.conf
+++ gawk '{ print $5 }'
+++ sed s/://
++ t=1806
++ echo 201001121806
+++ basename /etc/init/nvidia-settings.conf .conf
+++ sed s/-/_/g
++ eval sub_date_from '$Last_nvidia_settings'
+++ sub_date_from 12.01.2010 18:06
+++ local d t
++++ sort_date_tokens 12.01.2010
++++ echo 12.01.2010
++++ gawk 'BEGIN { FS="[-|/|.|:]"; fmt = "%04d%02d%02d\n" }
length($1) == 4 { printf(fmt,$1,$2,$3) }
length($3) == 4 { printf(fmt,$3,$2,$1) }'
+++ d=20100112
++++ echo 18:06
++++ sed s/://
+++ t=1806
+++ echo 201001121806
+ '[' 0201001121806 -lt 0201001121806 ']'
++ echo ''
++ sed 's/^[[:space:]]//'
+ no_jobs=
++ echo ''
++ sed 's/^[[:space:]]//'
+ checked_jobs=
+ '[' -n '' ']'
+ '[' -n '' ']'
+ check_kernel_module
+ notquiet -e '\n check version of the installed "\033[1msony-laptop\033[0m" kernel module'
+ false
+ echo -e '\n check version of the installed "\033[1msony-laptop\033[0m" kernel module'
+ return 0
+ install_deb dkms
+ local deb=dkms
+ is_installed dkms
+ local deb=dkms
++ dpkg-query -W '-f=${Status}' dkms
+ '[' 'install ok installed' = 'install ok installed' ']'
+ return 0
+ is_installed dkms
+ local deb=dkms
++ dpkg-query -W '-f=${Status}' dkms
+ '[' 'install ok installed' = 'install ok installed' ']'
+ return 0
++ uname -r
+ moddir=/lib/modules/2.6.31-17-generic
++ modinfo sony-laptop
++ grep '^version:'
++ gawk '{ print $NF }'
+ modversion=0.6
+ installed_version 0.6
+ notquiet -e ' - installed version: "\033[1m0.6\033[0m"'
+ false
+ echo -e ' - installed version: "\033[1m0.6\033[0m"'
+ return 0
+ available_version 0.9np5
+ notquiet -e ' - available version: "\033[1m0.9np5\033[0m"'
+ false
+ echo -e ' - available version: "\033[1m0.9np5\033[0m"'
+ return 0
+ '[' 0.9np5 = 0.6 ']'
+ [[ 0.9np5 > 0.6 ]]
+ ask ' There is a new version of the \033[1msony-laptop\033[0m kernel module available. Upgrade' yes
+ local answer= yes= no=
+ '[' -z '' ']'
+ yes='[y]es'
+ '[' -z '' ']'
+ no='[n]o'
+ :
+ false
+ lastline=' There is a new version of the \033[1msony-laptop\033[0m kernel module available. Upgrade'
++ echo ' There is a new version of the \033[1msony-laptop\033[0m kernel module available. Upgrade'
++ sed 's/\\033\[[012]\{1\}m//g'
+ lastline=' There is a new version of the sony-laptop kernel module available. Upgrade'
++ expr 78 + 5 + 4 + 3
+ '[' 90 -gt 65 ']'
++ spacefrom ' There is a new version of the \033[1msony-laptop\033[0m kernel module available. Upgrade'
++ echo ' There is a new version of the \033[1msony-laptop\033[0m kernel module available. Upgrade'
++ sed 's/[^[:space:]].*//'
+ newline='\n Make your choice: '
+ echo -en ' There is a new version of the \033[1msony-laptop\033[0m kernel module available. Upgrade?\n Make your choice: ([y]es or [n]o) [\033[1myes\033[0m]: '
+ read answer
++ tolower yes
++ echo yes
++ tr '[:upper:]' '[:lower:]'
+ answer=yes
+++ flat '[y]es'
+++ echo '[y]es'
+++ sed -e 's/\[//' -e 's/\]//'
++ tolower yes
++ echo yes
++ tr '[:upper:]' '[:lower:]'
+++ abrv '[y]es'
+++ echo '[y]es'
+++ sed -e 's/.*\[//' -e 's/\].*//'
++ tolower y
++ echo y
++ tr '[:upper:]' '[:lower:]'
+ '[' yes = yes -o yes = y ']'
+ return 0
+ update_kernel_module :
+ local install_module=: untar=: comp
+ mkdir -p /usr/share/sony-laptop
++ uname -r
++ sed 's/-.*//'
++ gawk -F . '{ print $3 }'
+ '[' 31 -lt 31 ']'
+ dlhost=www.logic.at/people/preining/software
+ wget -NP /usr/share/sony-laptop/ -U 'sony-VGN-Zseries-janitor (http://global-social.net/sony-VGN-Z#janitor) 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 Ubuntu/9.10 (karmic) VGN-Z11MN_B R1280M3' http://www.logic.at/people/preining/software/sony-laptop-zseries-0.9np5.tar.gz
++ tarbal_compression /usr/share/sony-laptop/sony-laptop-zseries-0.9np5.tar.gz
++ local tarbal=/usr/share/sony-laptop/sony-laptop-zseries-0.9np5.tar.gz comp r=0
++ case `file -b --mime-type $tarbal` in
+++ file -b --mime-type /usr/share/sony-laptop/sony-laptop-zseries-0.9np5.tar.gz
++ comp=z
++ echo z
++ return 0
+ comp=z
+ :
+ tar -xz -C /usr/share/sony-laptop -f /usr/share/sony-laptop/sony-laptop-zseries-0.9np5.tar.gz
+ :
+ ln_relative -sf /usr/share/sony-laptop/sony-laptop-zseries-0.9np5 /usr/src/sony-laptop-zseries-0.9np5
+ local lnopts=-sf lntarget=/usr/share/sony-laptop/sony-laptop-zseries-0.9np5 lnname=/usr/src/sony-laptop-zseries-0.9np5
+ echo /usr/share/sony-laptop/sony-laptop-zseries-0.9np5
+ grep -qs '^/'
+ :
+++ dirname usr/src/sony-laptop-zseries-0.9np5
++ gawk -F / '{ print $1 }'
++ echo usr/src
+ nametoken=usr
+++ dirname usr/share/sony-laptop/sony-laptop-zseries-0.9np5
++ gawk -F / '{ print $1 }'
++ echo usr/share/sony-laptop
+ targettoken=usr
+ '[' usr = usr ']'
+ eval 'lnname=${lnname#/usr}'
++ lnname=/src/sony-laptop-zseries-0.9np5
+ eval 'lntarget=${lntarget#/usr}'
++ lntarget=/share/sony-laptop/sony-laptop-zseries-0.9np5
+ :
+++ dirname src/sony-laptop-zseries-0.9np5
++ gawk -F / '{ print $1 }'
++ echo src
+ nametoken=src
++ gawk -F / '{ print $1 }'
+++ dirname share/sony-laptop/sony-laptop-zseries-0.9np5
++ echo share/sony-laptop
+ targettoken=share
+ '[' src = share ']'
++ gawk -F / '{ print NF }'
+++ dirname src/sony-laptop-zseries-0.9np5
++ echo src
+ ne_tokens=1
++ repeat_bash_cmd 0 1 echo -n ../
++ set +x
+ lntarget=../share/sony-laptop/sony-laptop-zseries-0.9np5
+ break
+ ln -sf ../share/sony-laptop/sony-laptop-zseries-0.9np5 /usr/src/sony-laptop-zseries-0.9np5
+ return 0
++ uname -r
++ sed 's/-.*//'
++ gawk -F . '{ print $3 }'
+ '[' 31 -lt 31 ']'
+ dkms add -m sony-laptop-zseries -v 0.9np5
Error! DKMS tree already contains: sony-laptop-zseries-0.9np5
You cannot add the same module/version combo more than once.
+ :
+ write_loadoptions speed_stamina=3
+ local loadoption_present=false option=speed_stamina=3
+ for configfile in '${m:=/etc/modprobe.d}/*.conf'
+ grep -q '^options[[:space:]]\{1,\}sony-laptop[[:space:]]\{1,\}speed_stamina=3$' /etc/modprobe.d/alsa-base.conf
+ for configfile in '${m:=/etc/modprobe.d}/*.conf'
+ grep -q '^options[[:space:]]\{1,\}sony-laptop[[:space:]]\{1,\}speed_stamina=3$' /etc/modprobe.d/blacklist-ath_pci.conf
+ for configfile in '${m:=/etc/modprobe.d}/*.conf'
+ grep -q '^options[[:space:]]\{1,\}sony-laptop[[:space:]]\{1,\}speed_stamina=3$' /etc/modprobe.d/blacklist.conf
+ for configfile in '${m:=/etc/modprobe.d}/*.conf'
+ grep -q '^options[[:space:]]\{1,\}sony-laptop[[:space:]]\{1,\}speed_stamina=3$' /etc/modprobe.d/blacklist-firewire.conf
+ for configfile in '${m:=/etc/modprobe.d}/*.conf'
+ grep -q '^options[[:space:]]\{1,\}sony-laptop[[:space:]]\{1,\}speed_stamina=3$' /etc/modprobe.d/blacklist-framebuffer.conf
+ for configfile in '${m:=/etc/modprobe.d}/*.conf'
+ grep -q '^options[[:space:]]\{1,\}sony-laptop[[:space:]]\{1,\}speed_stamina=3$' /etc/modprobe.d/blacklist-modem.conf
+ for configfile in '${m:=/etc/modprobe.d}/*.conf'
+ grep -q '^options[[:space:]]\{1,\}sony-laptop[[:space:]]\{1,\}speed_stamina=3$' /etc/modprobe.d/blacklist-oss.conf
+ for configfile in '${m:=/etc/modprobe.d}/*.conf'
+ grep -q '^options[[:space:]]\{1,\}sony-laptop[[:space:]]\{1,\}speed_stamina=3$' /etc/modprobe.d/blacklist-watchdog.conf
+ for configfile in '${m:=/etc/modprobe.d}/*.conf'
+ grep -q '^options[[:space:]]\{1,\}sony-laptop[[:space:]]\{1,\}speed_stamina=3$' /etc/modprobe.d/libpisock9.conf
+ for configfile in '${m:=/etc/modprobe.d}/*.conf'
+ grep -q '^options[[:space:]]\{1,\}sony-laptop[[:space:]]\{1,\}speed_stamina=3$' /etc/modprobe.d/sony-laptop.conf
+ loadoption_present=:
+ :
+ dkms status
+ grep -qs 'sony-laptop-zseries.*added'
+ remove_old_modules sony-laptop
+ local dkms_iv kernelmodule=sony-laptop
+ :
++ dkms status
++ grep sony-laptop
++ grep -v added
++ tail -n1
++ gawk '{ gsub(/[,:]$/,"",$2); print $2 }'
+ dkms_iv=0.9np4
+ '[' -z 0.9np4 ']'
+ dkms remove -m sony-laptop -v 0.9np4 --all
Error! There are no instances of module: sony-laptop
0.9np4 located in the DKMS tree.
+ :
++ dkms status
++ grep sony-laptop
++ grep -v added
++ tail -n1
++ gawk '{ gsub(/[,:]$/,"",$2); print $2 }'
+ dkms_iv=0.9np4
+ '[' -z 0.9np4 ']'
+ dkms remove -m sony-laptop -v 0.9np4 --all
Error! There are no instances of module: sony-laptop
0.9np4 located in the DKMS tree.
+ :
++ dkms status
++ gawk '{ gsub(/[,:]$/,"",$2); print $2 }'
++ tail -n1
++ grep -v added
++ grep sony-laptop
+ dkms_iv=0.9np4
+ '[' -z 0.9np4 ']'
+ dkms remove -m sony-laptop -v 0.9np4 --all
Error! There are no instances of module: sony-laptop
0.9np4 located in the DKMS tree.
+ :
++ dkms status
++ grep sony-laptop
++ grep -v added
++ tail -n1
++ gawk '{ gsub(/[,:]$/,"",$2); print $2 }'
+ dkms_iv=0.9np4
+ '[' -z 0.9np4 ']'
+ dkms remove -m sony-laptop -v 0.9np4 --all
Error! There are no instances of module: sony-laptop
0.9np4 located in the DKMS tree.
+ :
++ dkms status
++ grep sony-laptop
++ grep -v added
++ tail -n1
++ gawk '{ gsub(/[,:]$/,"",$2); print $2 }'
+ dkms_iv=0.9np4
+ '[' -z 0.9np4 ']'
+ dkms remove -m sony-laptop -v 0.9np4 --all
Error! There are no instances of module: sony-laptop
0.9np4 located in the DKMS tree.
+ :
++ dkms status
++ grep sony-laptop
++ grep -v added
++ tail -n1
++ gawk '{ gsub(/[,:]$/,"",$2); print $2 }'
+ dkms_iv=0.9np4
+ '[' -z 0.9np4 ']'
+ dkms remove -m sony-laptop -v 0.9np4 --all
Error! There are no instances of module: sony-laptop
0.9np4 located in the DKMS tree.
+ :
++ dkms status
++ grep sony-laptop
++ grep -v added
++ tail -n1
++ gawk '{ gsub(/[,:]$/,"",$2); print $2 }'
Follow ups