Skip to content

Commit

Permalink
Fix #73: Make linbo_preregister print the result.
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyBasher committed Jun 24, 2022
1 parent 3dfa44a commit d7cfdb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linbofs/usr/bin/linbo_preregister
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# linbo_preregister
# [email protected]
# 20220611
# 20220624
#


Expand All @@ -29,7 +29,7 @@ cd /
LASTWORKSTATION="$(grep ^[a-z0-9] "$LAST_REGISTERED" | tail -n 1)"

if [ "$LASTWORKSTATION" == "" ]; then
echo ",,," > /tmp/newregister
echo ",,,"
rm -f "$LAST_REGISTERED"
exit 0
fi
Expand Down Expand Up @@ -61,6 +61,6 @@ else
NEXTHOST="$LASTHOST"
fi
rm -f "$LAST_REGISTERED"
echo "$LASTROOM,$LASTGROUP,$NEXTHOST,$NEXTIP" > /tmp/newregister
echo "$LASTROOM,$LASTGROUP,$NEXTHOST,$NEXTIP"

exit 0

0 comments on commit d7cfdb0

Please sign in to comment.