Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ ODROID-XU4 Cloudshell LCD Informations for Server

Installation:

wget https://raw.githubusercontent.com/mdrjr/cloudshell_lcd/master/cloudshell-lcd_20150731-2_armhf.deb
wget https://raw.githubusercontent.com/mdrjr/cloudshell_lcd/master/cloudshell-lcd_20160913-3_armhf.deb

sudo dpkg -i cloudshell-lcd_20150731-1_armhf.deb
sudo dpkg -i cloudshell-lcd_20160913-3_armhf.deb

sudo apt-get -f install

4 changes: 3 additions & 1 deletion cloudshell
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export CONSOLE_FONT="Lat15-Fixed18"
export OUTPUT_CONSOLE="1"

# Network Interface: eth0, wlan0, ....
export NETIF="eth0"
#Find Default eth0 device for new systemd configurations...
ETHFIND=$(ifconfig | grep Link | awk '{print $1}' | sort | egrep -v 'inet6|lo')
Copy link

@Obihoernchen Obihoernchen Aug 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fails with newer ifconfig versions and ifconfig is deprecated.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's about: ls -1 /sys/class/net | grep -v lo

Copy link

@Obihoernchen Obihoernchen Aug 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or better with just one command: find /sys/class/net -type l ! -name lo -printf '%f'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ifconfig | awk 'NR==1{print $1}' works as well.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ifconfig is deprecated

export NETIF="$ETHFIND"

# SATA HDD mount
export SATA="/dev/sda1"
Expand Down