0.8-alt7
- use new ifcheckwireless common script
This commit is contained in:
parent
b2ff7fa00d
commit
889af6da26
@ -2,7 +2,7 @@
|
||||
|
||||
Name: alterator-net-eth
|
||||
Version: 0.8
|
||||
Release: alt6
|
||||
Release: alt7
|
||||
|
||||
Packager: Stanislav Ievlev <inger@altlinux.org>
|
||||
|
||||
@ -52,6 +52,9 @@ alterator module for tcp/ip connections configuration
|
||||
%_alterator_backend3dir/*
|
||||
|
||||
%changelog
|
||||
* Wed Nov 14 2007 Stanislav Ievlev <inger@altlinux.org> 0.8-alt7
|
||||
- use new ifcheckwireless common script
|
||||
|
||||
* Tue Oct 30 2007 Stanislav Ievlev <inger@altlinux.org> 0.8-alt6
|
||||
- fix iftab generation
|
||||
- move tools to alterator-net-common
|
||||
|
@ -66,7 +66,7 @@ read_iface()
|
||||
local info=
|
||||
ifcheckup "$name" && info="`_ "interface is up"`" || info="`_ "interface is down"`"
|
||||
|
||||
if ! [ -d "/sys/class/net/$name/wireless" ];then
|
||||
if ! ifcheckwireless "$name"; then
|
||||
ifcheckplug "$name"
|
||||
case "$?" in
|
||||
2) info="$info, `_ "plugged"`" ;;
|
||||
@ -75,7 +75,7 @@ read_iface()
|
||||
fi
|
||||
|
||||
printf 'info "%s"' "$info"
|
||||
printf 'wireless %s' "$([ -d "/sys/class/net/$name/wireless" ] && echo "#t" || echo "#f")"
|
||||
printf 'wireless %s' "$(ifcheckwireless "$name" && echo "#t" || echo "#f")"
|
||||
|
||||
local addr= ip= mask= bootproto=
|
||||
[ ! -s "/etc/net/ifaces/$name/ipv4address" ] ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user