From b1c3362463e8bd4f08a06e7d27da86aaef98bc81 Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Wed, 22 Nov 2006 19:16:36 +0000 Subject: [PATCH] Also check readonly hd* devices (e.g., compact flash) as a source for plnode.txt. --- conf_files/pl_netinit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf_files/pl_netinit b/conf_files/pl_netinit index cd48730..3d5ea77 100644 --- a/conf_files/pl_netinit +++ b/conf_files/pl_netinit @@ -125,11 +125,11 @@ find_node_config() echo "pl_netinit: looking for node configuration file on flash based devices" - # make the sd* expansion fail to an empty string if there are no sd + # make the sd* hd* expansion fail to an empty string if there are no sd # devices shopt -s nullglob - for device in /sys/block/sd*; do + for device in /sys/block/[hs]d*; do removable=`cat $device/removable` if [[ $removable -ne 1 ]]; then continue -- 2.47.0