mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
buster patch in local_facts
This commit is contained in:
parent
84220ddbb7
commit
c90da038da
1 changed files with 6 additions and 1 deletions
|
@ -14,7 +14,12 @@ OS=${OS//\"/}
|
|||
VERSION_ID=`grep VERSION_ID /etc/*elease | cut -d= -f2`
|
||||
VERSION_ID=${VERSION_ID//\"/}
|
||||
VERSION_ID=${VERSION_ID%%.*}
|
||||
OS_VER=$OS-$VERSION_ID
|
||||
grep PRETTY_NAME /etc/*ease|grep buster
|
||||
if [ $? -eq 0 ];then
|
||||
OS_VER=debian-10
|
||||
else
|
||||
OS_VER=$OS-$VERSION_ID
|
||||
fi
|
||||
DHCPCD_PATH=`which dhcpcd`
|
||||
NM_PATH=`which NetworkManager`
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue