5
if [ "$1" = "configure" -a ! -z "$2" ]; then
7
# Newer versions of ndiswrapper (> 1.0rc3) expect conf files to have
8
# the bustype in the file name. So, for upgrades from older versions,
9
# assume a bustype of PCI ('5'), and make appropriate symlinks.
10
if dpkg --compare-versions "$2" lt "1.0-1"; then
11
confs=/etc/ndiswrapper/*/*.conf
12
if [ "$confs" != "$(echo $confs)" ]; then
14
match=$(basename $c | grep -o ':[0-9]\+\.[0-9]\.conf' || true)
15
if [ -z "$match" ]; then
16
ln -sf "$(basename $c)" "${c%.conf}.5.conf"