phonedump (418B)
1 #!/bin/sh 2 3 # dump contacts from mobile phone using infrared 4 # depends: birda gnokii 5 6 # XXX: infrared does not work after suspend 7 # gnokiirc: 8 # [global] 9 # port = /dev/ttypv 10 # connection = serial 11 # model = AT 12 13 TMP=$(mktemp) 14 sudo ircomm -d /dev/cua01 -y /dev/ptypv -v2 2>&1 | tee $TMP & 15 sleep 7 16 if test -n "$(grep discover $TMP)" 17 then gnokii --getphonebook SM 1 end --raw | tee phonebook.csv 18 fi 19 sudo pkill ircomm 20 rm $TMP