K2LL33D SHELL

 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
Size491
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified22-Jun-2012 05:52
Last accessed07-Jul-2025 00:01
Actionsedit | rename | delete | download (gzip)
Viewtext | 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