Skip to content

Commit 737bef8

Browse files
Raymanmikepurvis
authored andcommitted
Melodic compatibility: modify getifip for bionic output (#88)
* Add net-tools as dependency because ifconfig is used * Modify getifip to handle bionic ifconfig output
1 parent 2816f5b commit 737bef8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<buildtool_depend>catkin</buildtool_depend>
1616

1717
<exec_depend>daemontools</exec_depend>
18+
<exec_depend>net-tools</exec_depend>
1819
<exec_depend>roslaunch</exec_depend>
1920
<exec_depend>xacro</exec_depend>
2021

scripts/getifip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
#
2828
# Please send comments, questions, or patches to code@clearpathrobotics.com
2929

30-
echo `LANG=C ifconfig $1 | grep -o 'inet addr:[^ ]*' | cut -d: -f2`
30+
echo `LANG=C ifconfig $1 | perl -lne '/inet (addr:)?(.[^ ]+)/ && print $2'`

0 commit comments

Comments
 (0)