#!/bin/sh
[ -L ~/.gammurc ] && ls -l ~/.gammurc
#sudo modprobe uhci_hcd
#sudo sh -c 'echo enable | tee /proc/acpi/ibm/bluetooth'
#sudo service bluetooth restart
#sleep 1
TSTAMP=`date +%Y%m%d-%H%M`
BAKFILE=~/BAK/nokia/6230i-"$TSTAMP".dat
SMSFILE=~/BAK/nokia/6230i-"$TSTAMP".sms
gammu --backup $BAKFILE -yes && nice gzip -9 $BAKFILE &&
gammu --getallsms > $SMSFILE && nice gzip -9 $SMSFILE &&
gammu --geteachsms > $SMSFILE && nice bzip2 -9 $SMSFILE
# one by one, then linked
sudo sh -c 'echo disable | tee /proc/acpi/ibm/bluetooth'
#sudo rmmod uhci_hcd
