LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-19-2018, 11:09 PM   #1
andygoth
Member
 
Registered: Sep 2017
Distribution: Slackware
Posts: 132

Rep: Reputation: 66
ip vice /sbin/ip in /etc/rc.d/rc.inet1


In slackware64-current, /etc/rc.d/rc.inet1 contains the following:

Code:
    # Flush the address from the interface:
    ip address flush dev ${1}
"ip" should probably be "/sbin/ip" to avoid dependence on $PATH and to match every other invocation of ip in the script.
 
Old 08-20-2018, 06:48 PM   #2
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Good catch! Don't know why the full path was missed out (but then I use my own network init scripts):
https://www.linuxquestions.org/quest...ml#post5816535
ftp://ftp.osuosl.org/pub/slackware/s.../ChangeLog.txt
Fri Feb 16 03:19:36 UTC 2018
n/network-scripts-15.0-noarch-5.txz: Rebuilt.
rc.inet1: set the broadcast address, and flush the ip address from interfaces
when shutting them down. Thanks to Markus Wiesner.

Last edited by abga; 08-20-2018 at 06:49 PM. Reason: correct URL
 
Old 08-20-2018, 08:45 PM   #3
tadgy
Member
 
Registered: May 2018
Location: UK
Distribution: Slackware (servers), Void (desktop/laptop)
Posts: 299

Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
Quote:
Originally Posted by andygoth View Post
In slackware64-current, /etc/rc.d/rc.inet1 contains the following:

Code:
    # Flush the address from the interface:
    ip address flush dev ${1}
"ip" should probably be "/sbin/ip" to avoid dependence on $PATH and to match every other invocation of ip in the script.
Robby (rworkman) currently maintains the Slackware network setup scripts in his git repo at: https://git.rlworkman.net/slacknetsetup/

The best thing to do is clone that repository, make the changes and submit a patch to Robby via email - such a simple fix will likely be added immediately.
 
1 members found this post helpful.
Old 02-04-2021, 12:42 PM   #4
andygoth
Member
 
Registered: Sep 2017
Distribution: Slackware
Posts: 132

Original Poster
Rep: Reputation: 66
Quote:
Originally Posted by tadgy View Post
Robby (rworkman) currently maintains the Slackware network setup scripts in his git repo at: https://git.rlworkman.net/slacknetsetup/

The best thing to do is clone that repository, make the changes and submit a patch to Robby via email - such a simple fix will likely be added immediately.
Patch email sent to Robby 26 January 2021. I don't know why I didn't do it right when you suggested it. I haven't gotten a reply yet, but I suppose that's fair since I myself waited more than two years!

Code:
--- rc.inet1~   2021-01-26 10:24:51.132541044 -0600
+++ rc.inet1    2021-01-26 10:25:07.986847728 -0600
@@ -285,7 +285,7 @@
        br_close $i
      fi
      # Flush the address from the interface:
-    ip address flush dev ${1}
+    /sbin/ip address flush dev ${1}
    fi
  }
 
Old 02-28-2021, 03:29 PM   #5
andygoth
Member
 
Registered: Sep 2017
Distribution: Slackware
Posts: 132

Original Poster
Rep: Reputation: 66
This is now fixed thanks to rc.inet1 being rewritten for IPv6, etc.
 
  


Reply

Tags
slackware



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Modifications to rc.inet1, rc.inet1.conf and rc.wireless hba Slackware 1 12-07-2014 03:57 AM
Root ShelI Change - changed /etc/passwd /sbin/sh to /sbin/bash and gave No Shell mn35 Solaris / OpenSolaris 13 04-13-2010 04:24 AM
Chkroot scan - /sbin/init & /sbin/ifconfig INFECTED bicoba Linux - Security 4 06-07-2006 09:16 AM
rc.inet1 and rc.inet1.conf edafe Slackware 0 02-16-2005 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration