[BACK]Return to manage_pre CVS log [TXT][DIR] Up to [local] / palm / manage_pre

Diff for /palm/manage_pre/manage_pre between version 1.2 and 1.3

version 1.2, 2009/08/12 21:08:23 version 1.3, 2009/08/20 22:38:37
Line 1 
Line 1 
 #!/bin/sh  #!/bin/sh
 # $Id$  # $Id$
   
 local _pre_label='Pre'  local _pre_id='Palm, Pre, 0316'
 local _ipod_label='iPod'  #local _pre_label='Pre'
   #local _ipod_label='iPod'
 local _mount_dir='/mnt/pre'  local _mount_dir='/mnt/pre'
 local _name=`basename $0`  local _name=`basename $0`
 local _unison_config='vogonpa'  local _unison_config='vogonpa'
Line 32 
Line 33 
             exit 1              exit 1
     fi      fi
   
     local _label=`disklabel ${_dev} 2>/dev/null | awk '/^label:/ { print $2 }'`      local _id=`dmesg | grep "^$_dev at " | tail -1 | sed -e 's/.*<//' -e 's/>.*$//'`
     if [ X"$_label" != X"$_pre_label" -a X"$_label" != X"$_ipod_label" ]; then      if [ X"$_id" != X"$_pre_id" ]; then
             echo "Pre not labeled properly [$_label]" >&2              echo "Pre [$_dev] not correct id [$_id]" >&2
             exit 2              exit 2
     fi      fi
   
Line 84 
Line 85 
     #fi      #fi
   
     if [ -e /usr/local/bin/unison ]; then      if [ -e /usr/local/bin/unison ]; then
         /usr/local/bin/unison $_unison_config          /usr/local/bin/unison $_unison_config -auto -batch -ui text
     fi      fi
 }  }
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>