forked from solettaproject/meta-soletta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-app:avahi: Do not hardcode network link
Let the developer choose which interface to use in the soletta dev-app recipe. Signed-off-by: Flavio Ceolin <[email protected]>
- Loading branch information
Flavio Ceolin
committed
Oct 23, 2016
1 parent
d5f70c0
commit df53f7d
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
recipes-soletta/dev-app/soletta-dev-app/soletta-dev-app-mac.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#! /bin/bash | ||
INTERFACE="enp2s0" | ||
MAC_ADDRESS=`ifconfig $INTERFACE | grep "HWaddr" | awk '{print $NF}'` | ||
MAC_ADDRESS=`ifconfig INTERFACE | grep "HWaddr" | awk '{print $NF}'` | ||
sed -i "s@MACADDR@$MAC_ADDRESS@" /etc/avahi/services/soletta-dev-app.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters