I am not posting this as a bug, but one of my users. Why does this
package not adhere to standards? You can push forward to Quantal and
witness identical results.
#Advance network detection to perfection scan all interfaces:
ls /sys/class/net/ > /tmp/ifaces.txt
if test -f /tmp/ifaces.txt
then
echo -e "${undgrn}Network interfaces detected${txtrst}"
cat /tmp/ifaces.txt
echo -e "${undgrn}Scanning for active${txtrst}"
cat /tmp/ifaces.txt | while read FILE
do
target=$(echo "$FILE" | sed -e "s/ /_/")
echo -n "Interface $FILE: "
ACT=$(cat /sys/class/net/$FILE/operstate)
echo $ACT
if [[ $ACT == 'up' ]]; then
ACTIVE=$FILE
echo $FILE > /tmp/tmpo.txt
echo -e "${undgrn}Active Network${txtrst}: "$ACTIVE
fi
done
# Current Seedo work... If the folder exists most likely it is the
# active connection set it as such. Point to Point Protocol evidently
# does not do states. up / down etc.
if [[ -d "/sys/class/net/ppp0/" && $ACTIVE == "No Inet" ]]; then
ACTIVE="ppp0"
fi
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/652762
Title:
NetworkManager fails to list VPN nameserver addresses before addresses
on mobile broadband
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/652762/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs