mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 04:43:32 +00:00
rc.d/hostid: remove useless cat
We've already read it and validated it ‒ re-reading is wasteful PR: 264376
This commit is contained in:
parent
3c4266eda1
commit
11bd40d04a
@ -138,7 +138,7 @@ hostid_start()
|
|||||||
if [ -r ${hostid_file} ]; then
|
if [ -r ${hostid_file} ]; then
|
||||||
read saved_hostid < ${hostid_file}
|
read saved_hostid < ${hostid_file}
|
||||||
if valid_hostid ${saved_hostid}; then
|
if valid_hostid ${saved_hostid}; then
|
||||||
hostid_set `cat ${hostid_file}`
|
hostid_set ${saved_hostid}
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user