From 5b398910ca9695d325e6aaed60b1a23e3b7096d9 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Mon, 31 Aug 2026 12:46:55 -0400 Subject: [PATCH] Decline to detect wireless when `lspci` is absent. --- tcshrc.system.Linux | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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