Parent Directory
|
Revision Log
| Links to HEAD: | (view) (download) (annotate) |
Allow LC_* and LANG vars through to runscript.sh by default.
net.lo now comes after bootmisc, #135118 thanks to Oldrich Jedlicka.
arping.sh now has MAC address support, #134253 thanks to Oldrich Jedlicka.
pppd.sh now updates secret files with a blank password, #134337
Remove swapon call from /sbin/rc as localmount already calls it,
partial fix for #134489
Ensure that we call halt.sh in a new shell with LC_ALL=C so that we don't
load any locale information which may stop us unmounting /usr, #128848
and #133090.
Don't set clock for OpenVZ systems, #133265 thanks to Kir Kolyshkin.
Don't remount / in checkroot for unionfs /, #129975 thanks to Daniel.
Don't stop net interfaces / is unionfs and a branch is network mounted.
move /lib/rcscripts/net.modules.d to /lib/rcscripts/net
Only treat lo and lo0 as loopback interfaces
Ensure that net.lo is started before other interfaces and wpa_supplicant has a positive timeout if no action file
Removed net.lo hotplug policy as that should be controlled by holdplug/udev and not baselayout
net modules now apply their own metric if they are activated, which makes
for a much easier and less mesy calculation.
Fixed loading net .sh modules
All net modules how have a .sh suffix to indicate that they are shell
scripts as not everyone uses vim.
runscript.sh now has a --nodeps option so that no depends are checked
when starting and stopping a service.
net.lo and system modules now support resolvconf instead of using our
own internal system.
DHCP and PPP clients no longer have helper scripts. As such they don't
change service status at all. Moved helpers.d/functions back into net.lo
Moved {get,save}_options from functions.sh to rc-services.sh
Removed whole load of crud from hostname init script, fixes #38172 again
and #122794. Also, it's no longer a critical service as defined by rc.
Added net modules for ccwgroup (s390 qeth ethernet) and br2684ctl
(speedtouch usb).
Removed xargs and find from all net scripts as /usr maybe net mounted,
#107260.
Punted the domainname script. Functionality has been in conf.d/net so you
can do this.
ppd module now checks to see if link exists if prefixed with /, #126916.
Allow services that depend on net to be stopped/started in post
up/down functions when the net service is started by rc.
net script modules variables function has been moved into module_expose
and removed from module_depend to be more correct.
net script modules have had #!/bin/bash removed from the top and now
set vim fs=sh to be more correct.
$myservice is now deprecated for init scripts.
$SVCNAME should be used instead and is read-only so it cannot be
clobbered.
Several variables in global scope that provided functions rely on,
such as BOOTLEVEL, SOFTLEVEL and svcdir are now read only for init
scripts.
depscan.sh now accepts the --svcdir option so that svcdir can now be
specified as the variable is marked readonly in functions.sh. Splash
programs will have to be updated.
Misc STYLE and quoting issues fixes in net scripts.
dhclient and udhcpc now work with RFC violating space separated
domain names in /etc/resolv.conf - they get appended to the search
option if it's not specified.
punted clean_pidfile and process_finished functions and as
start-stop-daemon as provided by rc-daemon.sh now provides
the same thing, just better.
Always ensure the end_service is called, #119233 again.
You can now specify a maxfail value for pppd (default 0), #115346.
net.lo now depends on isapnp to work with older NICs, #121539.
chat commands in pppd are now re-quoted, #121665.
ip routing policies are now supports via the rule_eth0=( ... )
variable (only supported by iproute2), #107628.
wpa_supplicant now looks for config files in order
/etc/wpa_supplicant/wpa_supplicant-$iface.conf
/etc/wpa_supplicant/wpa_supplicant.conf
/etc/wpa_supplicant.conf
and for these wpa_cli scripts
/etc/wpa_supplicant/wpa_cli.sh
/sbin/wpa_cli.action
Give a better error message when no valid DHCP client is installed. Tidy up some runscript logic.
We only hotplug net.* scripts on interfaces that are marked as ethernet.
Services should not get stuck in rc anymore, #119242.
Interfaces names with a dot in them now work.
inactive fixes
runscript.sh now traps interrupt signals and rolls back its status to what
it was when before it started.
bonding module now supports space seperated and array variables, #118590.
Preserve addresses when starting from the background
more copyright updates
net scripts now works with bash-3.1-r2, #116352.
Add new variable RC_DOWN_INTERFACE and documentation so that interfaces
are kept up for Wake On LAN support, #113880.
Ensure that calls from background never taken interface down
Remove nasty undocumented backgrounding as we now support ifplugd, netplug and wpa_supplicant-0.4.x which do much better jobs.
Fixed fallback_routes, #113776
use ${svclib} instead of hardcoding /lib/rcscripts.
Changed from eval foo=\"\$config_$ifvar\" to foo=config_$ivar; foo=$!foo
This is to avoid using the eval statement to extract user configured vars.
Enhanced pppd module so that it obeys metric routes, does not mess
with the system resolv.conf and works with updetach a bit better, #112049.
Fixed pointotpoint, #112757.
Fix "Device foo not found" error when stopping an interface and the
interface does not physically exist.
udhcpc now checks the dhcp lease file for a valid IP address.
We prefer iproute2 when stopping an interface by default.
tsort fix
Remove un-needed calls to sort | xargs in module after/use/need functions
Replace the bubble-esq sort routine with a tsort based one for loading modules. This means that we are much faster than before :) Fix ifconfig with multiple IP addresses, #110956
Fix force_modules in net.lo
New net scripts depend calls - functions, variables and provide.
This saves having to create 3 seperate functions in each module which means
a saving of around 600-800 bytes per module.
Split apipa out of arping module due to user demand for seperate
functionality.
arping module now works correctly.
runscript sets RC_KILL_CHILDREN=no when restarting a service, otherwise
things like your ssh session get killed.
adsl module supports new rp-pppoe-3.6 ebuild, #102820
Config profile is now changed correctly when doing 'rc foo' and you're in
the default runlevel, #101105
More permament fix to stop #108960 happening again
Changed number of preferred modules from 3 to 4 in net.lo, #108960.
netplug module renamed to netplugd for consistency
pppd module added, #53954 thanks to Alin Nastac
Changed net.lo depend from isdn4linux to isdn, #102846
updated env_whitelist so that nothing is allowed by default
system module now runs through pre instead of post and is run by
lo as well, so dns_ options can be configured for it
netplug and wpa_supplicant understand negative timeouts to be defined
as "return immediately and dont wait for success"
dns options and sortlist now get merged in resolv.conf too
bridge error message regarding the kernel module should work with
newer versions of bridge-utils
dns_*, nis_* and ntp_* options now work globally too, but are overridden
by specific interface/essid/mac ones.
dhcpcd and pump now support the "options" and "sortlist" directives too,
#104870
RC_AUTO_INTERFACE defaults to NO - but we still default to DHCP consoletype is now cached. This has the benefit of being very slightly faster and you now get coloured text for parallel startup Parallel startup also does parallel shutdown as well You're now warned if you're using a deprecated conf.d/net syntax
We don't expand routes
fallback_route_eth0 now works again
Add failup/faildown user functions when an interface fails to come up/go
down. Fixes bug #101087.
Removed temp code for address expansion that did nothing - address expansion still works :p
Added # vim:ts=4 to all net-script files and re-indented
/dep{cache,tree} are now chmodded 0644 so users can read them
More anal about RHS quoting
interface state directories are now created with -m 0755 to ensure that everyone can read them rc-daemon.sh now supports multiple cmds - partial fix for #98745
We now only link /etc/{resolv,ntp,yp}.conf when the file exists.
We now link back everything in the state dir except for .sv files.
RC_AUTO_INTERFACE no longer symlinks /etc/{resolv,ntp,yp}.conf when no.
and are now available in predown() - fixes #99106
Branch baselayout-1.12.
removed dep on logger - was causing circular deps when syslog-ng depends on us
Fix hotplug policy exiting
Fixed module depends in net.lo
Remove the 'no net scripts in boot runlevel' restriction as we now
have a hotplug policy setup instead
Fixed error reporting for modules=( foo ) and foo isn't installed
net.lo no longer needs find or diff
wpa_supplicant now respects the background=no option if
wpa_suppliant>=0.4.0 is installed
fixed network dependencies some more
You can now restart a script marked starting/inactive
Documented the use of the RC_USE_CONFIG_PROFILE variable in conf.d/rc
udhcpc now removes stale pidfiles
net.lo will not take down the interface if it does not exist and starting failed to work
added hotplug policy check for interface name #78495
ifconfig now reports correct MAC address ifconfig and iproute2 now support mtu_eth0 option net.lo attemts to arping the requested address when RC_AUTO_INTERFACE==yes
etc/{resolv,ntp,yp}.conf now link to /var/lib/net-scripts
You can now configure all options via the MAC address of your network card and the MAC address of AP you connect to like so config_001122334455=( "192.168.0.2/24 brd +") Fixes the last part of #52975 The old way of configuring for the MAC address of the AP is no longer supported
networking now expands configuration parameters - fixes #91564
so config_eth0=( "192.168.{1..3}.{1..3}/24 brd +" ) expands into
config_eth0=(
"192.168.1.1/24 brd +"
"192.168.1.2/24 brd +"
"192.168.1.3/24 brd +"
"192.168.2.1/24 brd +"
"192.168.2.2/24 brd +"
"192.168.2.3/24 brd +"
"192.168.3.1/24 brd +"
"192.168.3.2/24 brd +"
"192.168.3.3/24 brd +"
)
updated ESSID variables example in wireless.example - fixes #92469
unset exit instead of overriding it
net.lo bypasses the exit() function now provided by runscript.sh
Fix user function hooks for echoing to stdout and protecting our vars
iproute2 now handles mtu the same way as ifconfig - fixes #90242 net.lo no longer errors when using postdown and postup functions
Address network routes now get metrics applied as well (ie a route automatically added when an address is added) net.lo no longer errors when exlcuding modules who are installed
Changed "sed -ne" to "sed -n -e" for portability.
Added auto_interface (default yes).
if auto_interface is yes then we
*) default to dhcp
*) automatically calculate a metric (this may need work)
*) select the best interface based on metric
(restore resolv.conf, ntp.conf and yp.conf we have saved)
otherwise we
*) default to null
wpa_supplicant no longer kills itself when we're not stopping the interface
it's running on.
wpa_supplicant now uses wpa_monitor (yet to be released) if available.
Added a new module called system which enables the definition of domain
name, dns servers, ntp servers, nis domain and nis servers per interface.
essidnet and dhcp helpers have been re-coded around this module.
Fixed ifconfig and iproute2 erroring from new lo code - fixes #88006 If /proc/net/netlink does not exist then iproute2 will fail the check_installed function with an appropriate error - Thanks to Jeremy Huddleston for the patch. If /proc/net/packet does not exist then wpa_supplicant will fail check_installed function with an appropriate error Background fixes for net.lo, udhcpc and wpa_supplicant
removed ${devnull} from net.lo and net-script modules
updated all modules not to re-direct stderr where appropriate
iwconfig and wpa_supplicant now save their current ESSID via save_options
and reload it in their pre_stops so that ${ESSID} and ${ESSIDVAR} can be
used in users custom postdown functions
added a bash_variable to functions.sh which converts the given string
into a variable that bash can use - fixes #88175
net scripts can only launch if we're not in ${BOOTLEVEL}
rc-services.sh now does a /sbin/depscan.sh -u if we have not got
our deptree loaded
removed net_start/stop function from net.lo, bridge and bonding
net.lo now supports depend() per interface like so
depend_br0() { need net.eth0 net.eth1 }
if no net.$iface script exists, blunder ahead
bridging and bonding modules now start an interface if it's not marked as started
net.lo now supports fallback_route - fixes #75676 due to bash limitations, only one fallback route is supported cleaned up dhcp helper iproute now appends routes instead of adding them - this allows multiple default routes RC_STRICT_NET_CHECKING now supports the none "option" which means that the net service is always up
It's now possible to configure addresses and routes for the loopback interface if required - however you cannot override our defaults wpa_supplicant and iwconfig now loop for 5 seconds if essid is not returned straight away fixed depends error in run_script
removed udhcpc-* and dhclient-* helper modules and replaced them with a generic dhcp module which caters for all interfaces and dhcp clients that need it. We now prefer iproute2 over ifconfig if both are installed.
Updated copyright headers
STYLE fixes to many net-scripts modules Removed hardcoded Version and replaced with cvs $Header:
replaced awk commands with sed equivalents in net-scripts to make us more portable
all modules should now check interface existance correctly - fixes #76385
null and noop fixed for config_worked
net.lo changed logic to read "only fail if no configuration parameters work, bring interface down and abort". Fixes #78092
allow pure IPv6 addresses - fixes #73844
net.lo now ignores dot files when loading modules
noop sanity fixes
added "noop" config parameter which means take no action if the interface is up and has an address configured, otherwise continue addresses are now removed when starting an interface - fixes #77111
bridge now marks interfaces as UP - fixes #75354 net.lo tests the return value of modprobe - fixes #76385 iwconfig now sets enc keys through an eval statement - fixes #76601 updated wireless.example for whitespace in keys
fixed installed typo in net.lo - fixes #74152. Thanks to Federico Galassi
fixed net.lo getting vlan config
ifconfig and iproute2 now support function interface_set_mac_address macchanger no longer depends on macchanger if configuring a specific mac address
essidnet - fixed setting up search domains ifconfig now reads the old gateway variable correctly - fixes #73607 iwconfig now supports backgrounding
added rc-script statuses "starting" and "inactive" dhcpcd, udhcpc and dhclient now support backgrounding - fixes #52975
removed modules use dependancy in net.lo and added installed - this allows use to provide "virtual" modules which are only "installed" when other depended modules are installed
Fixed up address detection in apipa
net.lo now checks for duplicate static IPv4 addresses before assigning
iwconfig now supports preassociate and postassociate user hooks
net.example - changed $1 to ${IFACE} in examples
Stopped user setting MODULES_DIR
Removed rp_filter setting - fixes first part of bug #71971 Added sysctl.conf settings relating to rp_filter to sysctl.conf - fixes last part of bug #71971
iproute2 does not need to create dummy interfaces for aliases unlike ifconfig so we no longer do this We now bring down all aliases and addresses properly Split off some functions from net.lo into helpers.d/functions so that our DHCP helper scripts can use them too :) Deprecated interface specific setup in favour of a generic config macchanger brings interface up now - fixes #71929 DHCP over VLAN now works - fixes #71860 Disabled modified function checking as it's far too expensive on CPU and still isn't 100% reliable When specifing a module that isn't emerged, you now get an error telling you what to emerge Removed -p option from the diff call used for function removal
Fixed invalid variable handling in bonding and vlan - bug #71419 apipa now brings the interface up before testing if address exists
We now buffer module_provides in a PROVIDES array localised inside modules_load in net.lo
We no longer default a fallback to APIPA when no config is given net.example fleshed out a bit more for dhcpcd - fixes #60845 Improved forced module handling a touch modules_sort and modules_check_user in net.lo buffer _provides, _before and _after in arrays to avoid shelling out
Improved force module loading a bit Better force module documentation
Split modules_load into smaller more managable functions in net.lo Added modules_force option to net.lo with a big phat warning in net.example about it potentially breaking networking Fixed indentation problem in ifconfig
Removed second warning in net.lo when configuration not set Fixed random address range in apipa
Added arping duplicate address detection to net.lo Created Automatic Private IP Addressing (APIPA) module Bonding is now started pre instead of post
Added dependancy checking to ipppd Bonding is now started pre instead of post Fixed missing changes of get_type to interface_type and get_variable to interface_variable
Fixed iface variable in dhcp modules for vlans Changed get_device to interface_device Changed get_type to interface_type Added vlan configuration options and documented them in net.example Fixed bridge configuration handling Removed _get_vlans from iproute2 and ifconfig as vlan now does it itself
net-scripts/net.modules.d/bridge - fixed destroying a bridge if no ports were added - starts interfaces if they don't exist - fixed bug #65153 net-scrips/net.modules.d/bonding - starts interfaces if they don't exist net-scripts/init.d/net.lo - added net_start() function to start depandant ifaces so that bridge br0 can active tun0 which net.tun0 has to create
net-scripts/init.d/net.lo
- added use dependany on wlan incase we're using linux-wlan-ng drivers
fixes bug #64978
- moved start() to run_start() and stop() to run_stop()
created run() and new start()/stop() functions
this is so that we have one single entry point to localise variables
and to remove any added functions loaded by our modules
- removed redundant interface_exists() as it's provided by
ifconfig and/or iproute2
net-scripts/net.modules.d/ifconfig and iproute2
- added ifconfig_tunnel and iproute2_tunnel functions
addred gre/ipip tunnel support via the the tunnel module
- fixes bug #50765
net.lo - added get_type function to return the type of the interface
- eth, ippp, etc
ipppd, tuntap
- start() moved to pre_start() and we now test by type
this means you no longer need ifconfig_ippp0=( "isdn" "dhcp" )
as ippp0 is always an isdn device
bridge - fixed stop function and moved start() to pre_start()
and automatically start if the variable bridge_${iface} exists
net.example - fixed up documentation for changed behaviour above
net-scripts/init.d/net.lo
- we remove all added functions when restarting an interface
this relies on the diff command being available
added isdn support via the new ipppd module
net-scripts/conf.d/net.example
- added sample isdn setup
net-scripts/conf.d/wireless.example
- added better descriptions to the _sleep variables
Fixed boolean logic error when testing is_net_up in /sbin/runscript.sh
- fixed bug #70022
net.lo update
inet6 fixes - bug #65417
net-scripts/init.d/net.lo
- modprobe ${IFACE} when ${IFACE} does not exist
*** empty log message ***
more net-scripts fixes, related to module loading and stopping aliases
In net.lo, use eindent for output of pre/post scripts
Add v-e-commands (veinfo, vbegin, etc) to sbin/functions.sh that depend on RC_VERBOSE which defaults to no. Add --verbose to args understood by runscript.sh. Use veinfo and friends in net-scripts/init.d/net.lo when loading modules since this information is confusing to users. Always load global "modules" setting in following "modules_iface" since this is a little easier for users to understand.
Cosmetic fixes for starting loopback interface
Install net.modules.d to /lib/rcscripts instead of /etc so we don't have to deal with CONFIG_PROTECT Fix diff code in modules_load so it can identify which functions have been modified Fix fallback mechanism in iface_start so that it works correctly and doesn't report a bogus error message when trying the fallback Get rid of need_begin trickery in iface_stop Simplify eend processing in dhcp modules Implement eindent, eoutdent, esetdent in functions.sh and adjust net-scripts to use them. Re-write einfo, ewarn, eerror, ebegin, eend, ewend to use RC_INDENTATION and to work better on serial terminals Remove conf.d/net.ppp0 since that is provided by net-dialup/ppp
Create NET_FS_LIST and is_net_fs in functions.sh and use them in checkroot, localmount, netmount, net.example, and net.lo
Update to net-scripts 1.0.2 from Roy
remove extraneous \n from eerror
update to version 1.0 of net-scripts from Roy add default conf.d/net which is blank except for a short comment referring to net.example
update to 0.6.4 from Roy
Update to 0.6.3 from Roy
Detect infinite loops when sorting modules
Fix sorting of after/before/need/use variables. The arguments are space-separated, not newline-separated, so they need to be massaged before sorting. Sort the arguments on calling the after/before/need/use callback rather than while sorting modules; this should speed things up since they won't be sorted every time through the loop in modules_load Use some descriptive variable names in modules_load: loaded_interface, changed_something, tmp, modnums, missingdeps. Try to avoid re-using variables for different purposes Don't test true or false in [[ ]], instead call them directly Remove an unnecessary eval when setting umods Use sort -n for sorting the modules numerically Normalize spacing for loops: for ((var=0; ...))
update to net-scripts-0.6.2
- changes from UberLord, in particular before/after dep processing
- Get rid of "interface" and "interface_provides" functions, instead dynamically generate class functions instead when modules are loaded. - Double-check when loading modules to make sure that functions aren't replaced - Sanity check user-specified module list to make sure none conflict - Get ride of IFMODULE
version 0.5.0 of Roy "UberLord" Marple's modular networking scripts
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
| ViewVC Help | |
| Powered by ViewVC 1.1.13 |