Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | rc.inet1: Add missing 'dev' keyword | Jakub Jankowski | 2017-11-21 | 1 | -4/+4 |
| | | | | | | Also, replace "ip addr" with "ip address" for consistency Signed-off-by: Robby Workman <rworkman@slackware.com> | ||||
* | rc.inet1: Remove unnecessary $(echo) | Jakub Jankowski | 2017-11-21 | 1 | -4/+4 |
| | | | | Signed-off-by: Robby Workman <rworkman@slackware.com> | ||||
* | rc.inet1*: Simplify virtif_* code, add note to example config | Jakub Jankowski | 2017-11-21 | 2 | -16/+11 |
| | | | | | | | | | | | | | There is a built-in way of counting the number of elements in an array: ${#arrayname[@]}. Use this, and the fact that "for i in $(seq 0 -1)" will not evaluate body of the loop even once, to simplify code and get rid of virtif_determine(). While at it, add a note to rc.inet1.conf mentioning the necessity of keeping array indexes monotonically increasing (from 0), otherwise the code will fail (so would the original code). Signed-off-by: Robby Workman <rworkman@slackware.com> | ||||
* | rc.inet1: Test for loopback being "state UNKNOWN" too. | Jakub Jankowski | 2017-11-21 | 1 | -1/+1 |
| | | | | | | | | On my system "ip link set dev lo up" does not put it into UP state, but rather UNKNOWN. So test for either when trying to decide whether we need to set it up. Signed-off-by: Robby Workman <rworkman@slackware.com> | ||||
* | rc.inet1: Use simple test (-n/-z) for non-empty/empty | Jakub Jankowski | 2017-11-21 | 1 | -13/+13 |
| | | | | | | | | sh has built-in test for non-empty (-n) and empty (-z) variables, so let's use them. Also, quote variables, especially in tests (if [ ]) and array expansion (${foo[@]}). Signed-off-by: Robby Workman <rworkman@slackware.com> | ||||
* | rc.inet1: Replace [ test1 -a test2 ] with [ test1 ] && [ test2 ] | Jakub Jankowski | 2017-11-21 | 1 | -3/+3 |
| | | | | | | | | | Conditional expression like [ test1 -a test2 ] should be avoided as it is not well defined. See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html#tag_20_128_16 and https://github.com/koalaman/shellcheck/wiki/SC2166 Signed-off-by: Robby Workman <rworkman@slackware.com> | ||||
* | rc.inet1*: Fix DHCP timeoutcurrent-20171121 | Robby Workman | 2017-11-21 | 3 | -7/+7 |
| | | | | | This was accidentally changed from 15 seconds back to the 14.2 default of 10 seconds. Thanks to Eduard Rozenberg. | ||||
* | netconfig: Add /sbin/netconfigcurrent-20171117 | Robby Workman | 2017-11-17 | 1 | -0/+706 |
| | |||||
* | rc.inet1: Remove ipmask usage (unnecessary now) | Robby Workman | 2017-11-12 | 1 | -3/+0 |
| | |||||
* | rc.inet1.8: Minor fixups | Robby Workman | 2017-10-07 | 1 | -3/+4 |
| | |||||
* | rc.inet1.conf.5: Update for IPALIASES, bridge, and virtual IFs | Robby Workman | 2017-10-07 | 1 | -7/+57 |
| | | | | There are a few other fixups for previously existing stuff too. | ||||
* | manpages/*: Add manual pages for network-scripts | Robby Workman | 2017-10-07 | 2 | -0/+312 |
| | |||||
* | rc.inet1.conf: Clarify comment wrt bridge interfaces | Robby Workman | 2017-10-07 | 1 | -1/+1 |
| | |||||
* | Merge branch 'ipaliases' | Robby Workman | 2017-07-14 | 3 | -0/+32 |
|\ | |||||
| * | README: Note current status of branch | Robby Workman | 2017-07-14 | 1 | -2/+2 |
| | | |||||
| * | rc.inet1.*: Added support for IP address aliases | Robby Workman | 2017-07-14 | 2 | -0/+23 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is accomplished with a new parameter in rc.inet1.conf: IPALIASES[$index]="space separated list of addresses" The aliases are added with a /32 mask and a label of ${interface}:{$number} to remain compatible with net-tools. IP address aliases are supported for both statically configured interfaces and dhcp-configured interfaces, although they'll only be configured for dhcp if the dhcpcd call succeeds. * note: I don't what happens if dhcpcd gets IPv4LL address | ||||
* | | README: noted current status | Robby Workman | 2017-07-13 | 1 | -3/+5 |
| | | |||||
* | | Merge branch 'virtual-ifs' | Robby Workman | 2017-07-13 | 3 | -9/+47 |
|\| | |||||
| * | rc.inet1: Use bash builtin arithmetic instead of external expr | Robby Workman | 2017-07-13 | 1 | -1/+1 |
| | | |||||
| * | README: Noted status of virtual-ifs branch | Robby Workman | 2017-07-12 | 1 | -25/+8 |
| | | |||||
| * | rc.inet1: fix index number usage in virtual interface setup/destroy | Robby Workman | 2017-07-12 | 1 | -1/+1 |
| | | |||||
* | | README: Noted status of master branch | Robby Workman | 2017-07-12 | 1 | -23/+7 |
| | | |||||
| * | rc.inet1{,.conf}: Allow create/destroy of virtual tun/tap devices | Robby Workman | 2017-07-12 | 2 | -0/+44 |
|/ | |||||
* | rc.inet1: Fix bridge teardown code | Robby Workman | 2017-07-12 | 1 | -3/+3 |
| | |||||
* | README: Additional notes | Robby Workman | 2017-07-11 | 1 | -0/+26 |
| | |||||
* | rc.inet1: Bugfixes... | Robby Workman | 2017-07-11 | 1 | -4/+4 |
| | |||||
* | rc.inet1: Replace backticks with $() | Robby Workman | 2017-07-11 | 1 | -9/+9 |
| | |||||
* | rc.wireless.conf: Replace ifconfig MAC lookup with "ip link show" | Robby Workman | 2017-07-11 | 1 | -1/+2 |
| | |||||
* | rc.wireless: Migrate HWADDR getting from ifconfig to iproute2 | Robby Workman | 2017-07-11 | 1 | -1/+1 |
| | | | | TODO: Someone fluent with sed needs to review this... | ||||
* | rc.wireless: Migrate ifconfig --> ip link set dev $IF | Robby Workman | 2017-07-11 | 1 | -1/+1 |
| | |||||
* | rc.inet1: Migrate bridge setup/teardown to iproute2 from brctl | Robby Workman | 2017-07-11 | 1 | -4/+13 |
| | | | | This should complete f7533fca7e82 and eliminate the TODO | ||||
* | rc.inet1: migrate gateway functions | Robby Workman | 2017-07-11 | 1 | -6/+6 |
| | |||||
* | rc.inet1: Migrate code to take down interfaces | Robby Workman | 2017-07-11 | 1 | -3/+3 |
| | |||||
* | rc.inet1: Migrate code to bring up interfaces | Robby Workman | 2017-07-11 | 1 | -10/+11 |
| | |||||
* | rc.inet1: Partially migrate bridge setup code | Robby Workman | 2017-07-11 | 1 | -3/+3 |
| | | | | TODO: brctl --> ip link add name ${br_name} type bridge | ||||
* | rc.inet1: Migrate loopback interface code | Robby Workman | 2017-07-11 | 1 | -7/+8 |
| | |||||
* | Add README file | Robby Workman | 2017-07-11 | 1 | -0/+11 |
| | |||||
* | rc.inet1: Use return (not continue) to leave the if_up() function. | Robby Workman | 2017-07-11 | 1 | -1/+1 |
| | | | | | | Thanks to Tim Thomas for the bug report. Merged from Wed Sep 21 15:54:06 UTC 2016 changes to -current tree | ||||
* | Initial commit of rc.inet1* and rc.wireless* | Robby Workman | 2017-01-06 | 4 | -0/+1010 |
If other files are needed, they can be added later |