Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Nov 7, 2017
1 parent 2415563 commit 64fb908
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/dracut/80fai-autodiscover/fai-scan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ declare -a para
scan_net() {

# scan local network for FAI server

local iprange=$1
shift
local port=$1
local iplist
local host

iplist=$(nmap -n -e $nic --host-timeout 10 --open -oG - -p $port $iprange 2>/dev/null | grep -v '#' | cut -d' ' -f2 | sort -n | uniq)

# check all IPs, if a faiserver is listening there
Expand Down Expand Up @@ -137,7 +137,7 @@ netroot=nfs:$monserver:$NFSROOT:nfsvers=3
echo "root=$root"

echo "FAI_VERSION=$FAI_VERSION" >> $ivar
echo FAI_FLAGS=$FAI_FLAGS >> $ivar
echo "FAI_FLAGS=$FAI_FLAGS" >> $ivar
echo "root=$monserver:$NFSROOT" >> $ivar
echo "monserver=$monserver" >> $ivar
echo "FAI_CONFIG_SRC=$FAI_CONFIG_SRC" >> $ivar
Expand Down

0 comments on commit 64fb908

Please sign in to comment.