Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / doc / ifupdown / examples / | server ip : 172.67.156.115 your ip : 172.69.6.99 H O M E |
Filename | /usr/share/doc/ifupdown/examples/pcmcia-compat.sh |
Size | 491 |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:50 |
Last modified | 22-Jun-2012 05:52 |
Last accessed | 07-Jul-2025 00:01 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/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
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