From 22979c14c401765ca3e794bf383729fc2a4d4e86 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Fri, 29 May 2020 11:59:28 -0500 Subject: [PATCH] use /etc/rpi-issue for raspbian test --- scripts/local_facts.fact | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/local_facts.fact b/scripts/local_facts.fact index 5b60bbe08..9f4143ce9 100755 --- a/scripts/local_facts.fact +++ b/scripts/local_facts.fact @@ -11,6 +11,9 @@ fi OS=`grep ^ID= /etc/*elease|cut -d= -f2` OS=${OS//\"/} +if [ -f /etc/rpi-issue ]; then + OS="raspbian" +fi VERSION_ID=`grep VERSION_ID /etc/*elease | cut -d= -f2` VERSION_ID=${VERSION_ID//\"/} VERSION_ID=${VERSION_ID%%.*}