Skip to content

Commit 757bacd

Browse files
Przemysław Fierekjwhui
authored andcommitted
Fix problem with not working scripts after merge BeagleBone Black platform. (openthread#119)
1 parent c07b8e0 commit 757bacd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

script/_initrc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,9 @@ without()
9595
if [ -f /sys/firmware/devicetree/base/model ]
9696
then
9797
# Note: 'model' is a binary file with no newline
98-
cat /sys/firmware/devicetree/base/model | grep -s "BeagleBone Black" > /dev/null
99-
if [ $? -eq 0 ]
100-
then
101-
PLATFORM=beagleboneblack
102-
fi
98+
cat /sys/firmware/devicetree/base/model | grep -s "BeagleBone Black" && PLATFORM=beagleboneblack
10399
fi
104100

105-
106101
if test -z "$PLATFORM"; then
107102
have_or_die lsb_release
108103
PLATFORM=$(lsb_release -i | cut -c17- | tr '[:upper:]' '[:lower:]')

0 commit comments

Comments
 (0)