Skip to content

Commit

Permalink
swaret fix for slackware 14.X
Browse files Browse the repository at this point in the history
  • Loading branch information
sandikata committed Apr 24, 2014
1 parent c6e7884 commit 008502e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions swaret-patch-for-slackware-14.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- /usr/sbin/swaret.org 2009-09-06 19:19:00.000000000 +0400
+++ /usr/sbin/swaret 2013-05-20 19:28:03.442679629 +0400
@@ -2199,7 +2199,7 @@

check_for_network()
{
- ip_address=`ifconfig | grep "inet addr" | grep -v 127.0.0.1 | tee | awk '{ print $2 }' | awk -F":" '{ print $2 }' | head -1`
+ ip_address=`ifconfig | grep "inet " | grep -v 127.0.0.1 | tee | awk '{ print $2 }' | head -1`

if [ ! $ip_address ] || [ ! `expr match $ip_address [0-9][0-9][0-9].[0-9][0-9][0-9].[0-9][0-9][0-9].[0-9][0-9][0-9]` ] ; then
MSGERRp "check_for_network()" "$MSG_NDOWN"

0 comments on commit 008502e

Please sign in to comment.