diff --git a/tcshrc.system.Linux b/tcshrc.system.Linux index bba77f6..514eafe 100644 --- a/tcshrc.system.Linux +++ b/tcshrc.system.Linux @@ -24,9 +24,11 @@ if( ${#battery_locations} > 0 ) then end endif -set wireless_cards=( `lspci | grep '\(WiFi\|Wireless\)'` ) -if( $#wireless_cards > 0 ) then - setenv CSHENV_ENABLE_PROMPT_WIFI +if ( -e `which lspci` ) then + set wireless_cards=( `lspci | grep '\(WiFi\|Wireless\)'` ) + if( $#wireless_cards > 0 ) then + setenv CSHENV_ENABLE_PROMPT_WIFI + endif endif # Set the acknowledgement bit, essentially