We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddda68d commit d67f7baCopy full SHA for d67f7ba
rpi-clone
@@ -29,17 +29,13 @@ fi
29
30
rpios=0
31
rpios_recent=0
32
-if [ -f /etc/os-release ] && [ -f /proc/device-tree/model ]
+if [ -f /etc/os-release ]
33
then
34
- pretty=`cat /etc/os-release | grep PRETTY`
35
osversion=`cat /etc/os-release | grep VERSION_ID | cut -d'"' -f2`
36
- model=`tr -d '\0' < /proc/device-tree/model`
37
- if [[ "$pretty" == *"Raspbian"* || ("$model" == *"Raspberry"* && "$pretty" == *"Debian"*) ]]
38
- then
+ if [[ -e /etc/rpi-issue ]]; then
39
rpios=1
40
fi
41
- if ((rpios)) && ((osversion >= 10))
42
+ if ((rpios)) && ((osversion >= 10)); then
43
rpios_recent=1
44
45
0 commit comments