File: notify-bitpim

package info (click to toggle)
bitpim 0.9.08.dfsg.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 24,228 kB
  • ctags: 45,773
  • sloc: python: 191,894; cpp: 2,074; perl: 600; ansic: 343; sh: 185; makefile: 76; sed: 1
file content (19 lines) | stat: -rw-r--r-- 246 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -e
umask 022

DIR=/var/run/bitpim
LOG=$DIR/dnotify.log

action=$1
case "$action" in
   add|del ) ;;
   * ) exit 1 ;;
esac

dev="${DEVNAME-$DEVICE}"
test -n "$dev" || exit 1

mkdir -p "$DIR"
rm -f "$LOG"
echo "$action $dev" > "$LOG"