/usr/share/doc/ifupdown/examples/pcmcia-compat.sh is in ifupdown 0.8.19.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #!/bin/sh
if [ ! -e /etc/pcmcia/shared ]; then exit 1; fi
pcmcia_shared () {
. /etc/pcmcia/shared
}
iface="$1"
# /etc/pcmcia/shared sucks
pcmcia_shared "start" $iface
usage () {
exit 1
}
get_info $iface
HWADDR=`/sbin/ifconfig $DEVICE | sed -n -e 's/.*addr \([^ ]*\) */\1/p'`
which=""
while read glob scheme; do
if [ "$which" ]; then continue; fi
case "$SCHEME,$SOCKET,$INSTANCE,$HWADDR" in
$glob) which=$scheme ;;
esac
done
if [ "$which" ]; then echo $which; exit 0; fi
exit 1
|