Decline to detect wireless when lspci is absent.
This commit is contained in:
+5
-3
@@ -24,9 +24,11 @@ if( ${#battery_locations} > 0 ) then
|
|||||||
end
|
end
|
||||||
endif
|
endif
|
||||||
|
|
||||||
set wireless_cards=( `lspci | grep '\(WiFi\|Wireless\)'` )
|
if ( -e `which lspci` ) then
|
||||||
if( $#wireless_cards > 0 ) then
|
set wireless_cards=( `lspci | grep '\(WiFi\|Wireless\)'` )
|
||||||
setenv CSHENV_ENABLE_PROMPT_WIFI
|
if( $#wireless_cards > 0 ) then
|
||||||
|
setenv CSHENV_ENABLE_PROMPT_WIFI
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Set the acknowledgement bit, essentially
|
# Set the acknowledgement bit, essentially
|
||||||
|
|||||||
Reference in New Issue
Block a user