File: drvdsnuninst.sh

package info (click to toggle)
sqliteodbc 0.99991-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,940 kB
  • sloc: ansic: 59,139; sh: 12,780; makefile: 952; sql: 313
file content (13 lines) | stat: -rwxr-xr-x 246 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#
# Uninstall ODBC driver and system DSN
#    $1   driver name
#    $2   DSN name

which odbcinst > /dev/null || {
    echo >&2 "no usable odbcinst program"
    exit 1
}

odbcinst -u -d -n "$1" || true
odbcinst -u -l -s -n "$2" || true