aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* lang.{sh,csh} cleanup before moving to 'setup' packageDavid Kaspar [Dee'Kej]2018-05-302-155/+125
| | | | The dependance on 'consoletype' binary has been removed.
* src/sushell moved into 'policycoreutils' packageDavid Kaspar [Dee'Kej]2018-05-303-22/+0
| | | | | | It has been agreed that maintainers of 'policycoreutils' will either accept the pull-request, or they will close it if the sushell is no longer needed...
* src/shvar.* removedDavid Kaspar [Dee'Kej]2018-05-303-500/+0
| | | | No longer build or used by anything else in initscripts.
* po/xgettext_sh removedDavid Kaspar [Dee'Kej]2018-05-301-28/+0
| | | | | This file was not referenced anywhere, is not called inside Makefile, and the build succeeds without it. Looks like an artifact from past.
* sys-unconfig removedDavid Kaspar [Dee'Kej]2018-05-3085-325/+3
| | | | | This script has been obsoleted by other concepts in Fedora, and using it can be quite dangerous nowadays...
* Outdated files from doc/ folder removedDavid Kaspar [Dee'Kej]2018-05-304-546/+0
| | | | | | | | | | | | | | Most of these files were more than 15 years old, making them no longer valid or just simply outdated... Files removed: * changes.ipv6 * ipv6-*.howto * sysvinitfiles Regarding the 'sysvinitfiles' -- the 'initscripts' package is nowadays intended for keeping the support for old init scripts still used somewhere. However, for creating new services people should use systemd now...
* make archive: ChangeLog generating removedDavid Kaspar [Dee'Kej]2018-05-301-7/+1
| | | | Use 'git log' instead...
* network-scripts: ifup & ifdown -- use alternatives systemDavid Kaspar [Dee'Kej]2018-05-302-6/+17
| | | | | | | | | | | | | | | | | This installs the real scripts into /etc/sysconfig/network-scripts while leaving the management of the launchers in /usr/sbin to the alternatives system. This allows coexistence with alternative implementations of ifup and ifdown, notably NetworkManager. A priority of 90 is chosen rather arbitrarily, NetworkManager will use a lower one (50) so that our implementation takes precedence over NetworkManaager in case both are installed. In an unlikely event the user will want to switch to NetworkManager implementations when both are installed they can override the default with: $ update-alternatives --config ifup
* adjtime moved into 'util-linux' packageDavid Kaspar [Dee'Kej]2018-05-303-35/+6
| | | | | The line /etc/adjtime has been kept in rwtab, to not break the readonly-root...
* specfile: simplified & updated to new repository layoutDavid Kaspar [Dee'Kej]2018-05-301-114/+180
| | | | | The specfile should follow the Fedora Packaging Guidelines now: https://fedoraproject.org/wiki/Packaging:Guidelines
* .gitignore files updated to new repository layoutDavid Kaspar [Dee'Kej]2018-05-302-4/+1
| | | | Also, the po/.cvsignore has been removed...
* Makefile simplified & updated to new repository layoutDavid Kaspar [Dee'Kej]2018-05-301-83/+103
| | | | | 'check' and 'syntax-check' rules were dropped, as they seem obsolete nowadays (we are not using them at all)...
* po/Makefile simplified & updated to new repository layoutDavid Kaspar [Dee'Kej]2018-05-302-341/+378
| | | | po/initscripts.pot updated as well
* src/Makefile simplified & updated to new repository layoutDavid Kaspar [Dee'Kej]2018-05-303-58/+80
| | | | | The rules have been unified, build results are now in build/ subfolder, and it uses GNU naming for the system paths...
* Repository scheme updated to new layoutDavid Kaspar [Dee'Kej]2018-05-3077-0/+1
| | | | | NOTE: This commit just moves files around, without actually fixing the Makefiles and specfile. See follow up commits which resolve this.
* fedora-readonly: command substitution warning fixed (null-byte input)David Kaspar [Dee'Kej]2018-05-291-1/+1
| | | | | | | | | Due to some change in bash-4.4, it started to give out warnings about ignored null-byte characters in the command substitution: https://bugzilla.redhat.com/show_bug.cgi?id=1472137#c2 Resolves: RHBZ#1583338
* 9.809.80David Kaspar [Dee'Kej]2018-05-251-1/+15
|
* sysconfig/readonly-root: Clarify the usage of readonly-root.David Kaspar [Dee'Kej]2018-05-171-0/+2
| | | | | ... Without appending the 'ro' to mount options of '/' mount point the system will be still mounted as read-write, even when READONLY=yes.
* use proper shebangMatteo Croce2018-05-175-5/+5
| | | | | | | | $" is a BASH extension to translate text. Replace the shebang with /bin/bash to avoid parsing errors, as even BASH has a POSIX compliant mode when run as sh. Signed-off-by: Matteo Croce <mcroce@redhat.com>
* specfile: remove the systemctl call in the %postun phaseDavid Kaspar [Dee'Kej]2018-05-171-7/+0
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=1512688
* network-functions: use tr to upper case strings rather than awkMatteo Croce2018-05-171-3/+3
| | | | | | | | | | | | | | | | | | | | network-functions uses awk to tranform the mac address to upper case. Replace awk with tr which is two order of magnitude faster: $ time awk '{ print toupper($0) }' </usr/share/dict/words >/dev/null real 0m0,227s user 0m0,224s sys 0m0,004s $ time tr '[a-z]' '[A-Z]' </usr/share/dict/words >/dev/null real 0m0,005s user 0m0,000s sys 0m0,005s Also use here-strings instead of spawning a subshell and a pipe. Signed-off-by: Matteo Croce <mcroce@redhat.com>
* network-functions: add error messages for bonding installationDavid Kaspar [Dee'Kej]2018-05-171-5/+17
| | | | | | | | | | Instead of displaying messages without context, like this: ./network-functions: line 571: echo: write error: Invalid argument ./network-functions: line 598: echo: write error: Permission denied We will now display pretty error messages (via net_log) about what has actually failed...
* ifdown-eth: no longer needed 'pidof -x dhclient' condition removedDavid Kaspar [Dee'Kej]2018-05-171-2/+2
| | | | | | | | | | Previously, there were 2 additional conditions related to this part of code, but they were removed in time, so this last condition has remained an artifact and is de-facto obsolete. However, the 'pidof -x dhclient' condition could cause the network service to hang on stop/restart when processes were executed from a network share... Removing that condition should hypothetically fix it.
* netconsole: LSB header addedDavid Kaspar [Dee'Kej]2018-05-171-0/+7
| | | | | | Since we are using systemd, the Default-Start/Stop keywords were omitted. Basically the LSB header is quite similar to LSB header of network service...
* po/xgettext_sh.py: fix for indentation of previous commitDavid Kaspar [Dee'Kej]2018-05-141-1/+2
| | | | | The tabs & spaces mixture caused bad script conversion and breaking the script completely...
* po/xgettext_sh*: converted to use to python3David Kaspar [Dee'Kej]2018-05-112-59/+76
| | | | | Also, the code has been fixed to comply with PEP8 specification. More info: https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
* network.service: 'reload' removedDavid Kaspar [Dee'Kej]2018-04-261-2/+2
| | | | More info: https://bugzilla.redhat.com/show_bug.cgi?id=1554690
* Lots of documentationPhil Dibowitz2018-03-281-0/+16
| | | | Docs for stuff I added in #2, #6, and #16.
* ifup-tunnel: Support 'external' tunnels (#172)Phil Dibowitz2018-03-272-6/+15
| | | | | | | | | | | | | | * ifup-tunnel: Support 'external' tunnels This is a newish feature upstream. You can now set the external flag on a ip6_tunnel type interface (though not the primary one, ip6tnl0), and doing so will allow it to decapsulate any packet, and assuming that the inner address is the one on that interface, it'll drop it back on the stack. This is useful for DSR vips. While v6-in-v6 was already supported, this allows v4-in-v6 which is necessary to serve v4 traffic in a v6only infrastructure. There's comments in ifup-tunnel that imply it was designed only for GRE tunnels, but this still seems like the best place for this.
* spec: add gcc to BuildRequiresLukas Nykryn2018-02-191-1/+1
| | | | https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequire
* init.d/functions: fix sourcing for kshDavid Kaspar [Dee'Kej]2018-02-131-2/+7
| | | | More info: https://bugzilla.redhat.com/show_bug.cgi?id=1518429
* 9.799.79David Kaspar [Dee'Kej]2018-01-021-1/+6
|
* ifdown-post: fix logical error in commit 5d61564David Kaspar [Dee'Kej]2018-01-021-1/+1
| | | | | | | Empty ${RESOLV_MODS} was causing a deletion of config files in /etc/ppp/peers/* Resolves: #155
* network: add knob to optionally keep interfaces up during shutdown (#154)Davide Cavalca2017-12-042-0/+14
| | | * network: add knob to optionally keep interfaces up during shutdown
* network-functions: use POSIX forwarding instead of bash-ismDavid Kaspar [Dee'Kej]2017-11-093-3/+3
|
* 9.789.78David Kaspar [Dee'Kej]2017-11-081-1/+16
|
* specfile: drop dependancy on /etc/system-releaseDavid Kaspar [Dee'Kej]2017-11-071-2/+0
| | | | | | | This will allow users to unistall 'system-release' or 'fedora-release' package, thus allowing de-branding of Fedora if needed. For more info: https://bugzilla.redhat.com/show_bug.cgi?id=1493479
* ifup-post: always update nameserver & search entries in /etc/resolv.confDavid Kaspar [Dee'Kej]2017-10-313-75/+139
| | | | | | | | | | | | | | | | | | | | | | This is complete rework of how we generate the /etc/resolv.conf. Fixes: * always update 'nameserver' & 'search' entries when DNS* & DOMAIN options (respectively) were updated in ifcfg-* files * always update the order of 'nameserver' entries when the order of DNS* options was updated * always keep /etc/resolv.conf.save as a proper backup - do not overwrite it everytime when updating 'nameserver' or 'search' Enhancements: * added support for DNS3 option (equals to MAXNS value in GLIBC) * added logic to process duplicate DNS* options * added logic to process randomly omitted DNS* options (e.g. omitting DNS1 while specifying DNS2 and/or DNS3 will still work now) This work was based on these two RHEL-7.5 BZs: https://bugzilla.redhat.com/show_bug.cgi?id=1364895 https://bugzilla.redhat.com/show_bug.cgi?id=1357658
* network-scripts: forward DBus calls to /dev/nullDavid Kaspar [Dee'Kej]2017-10-312-2/+4
|
* Spelling fixesVille Skyttä2017-10-303-8/+8
|
* Tell git to ignore *.oVille Skyttä2017-10-301-0/+1
|
* Use grep -E instead of deprecated egrepVille Skyttä2017-10-302-2/+2
|
* Avoid some unnecessary stat callsVille Skyttä2017-10-304-5/+5
|
* systemd/system: symlinks for fedora-* services removedDavid Kaspar [Dee'Kej]2017-10-196-20/+27
| | | | | The symlinks are no longer needed. Enablement of default services is now managed by 'fedora-release' package.
* network-scripts: firewall-cmd replaced with DBus callsDavid Kaspar [Dee'Kej]2017-10-163-11/+22
| | | | | To speed things up. Based on patch & comments from: https://bugzilla.redhat.com/show_bug.cgi?id=1497759
* 'debugmode' subpackage dropped completelyDavid Kaspar [Dee'Kej]2017-10-165-40/+1
| | | | | | | | | | | Using this package was very dangerous, and could lead to instability of system, or even being unable to bootup at all, and value of this functionality was at least questionable, and was not documented. We decided to drop functionality completely, to make sure users do not install it accidentally (e.g. by using globbing with 'dnf install'). Resolves: #69
* sysconfig/init* files droppedDavid Kaspar [Dee'Kej]2017-10-165-48/+12
| | | | | Users can still create the /etc/sysconfig/init file manually to override the default values, which are now taken from init.d/functions.
* sysctl.conf.s390 droppedDavid Kaspar [Dee'Kej]2017-10-123-26/+0
| | | | This is a follow up to 13d638c0a7df4a998429163b9a0189dcffa2393a.
* usleep: change the error message to print the full replacement commandlineZbigniew Jędrzejewski-Szmek2017-09-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also drop the argv[0] as previx — the message already includes the name of the program. $ src/usleep 1 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 1e-06" instead... $ src/usleep 10 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 1e-05" instead... $ src/usleep 20 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 2e-05" instead... $ src/usleep 100 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 0.0001" instead... $ src/usleep 200 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 0.0002" instead... $ src/usleep 300 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 0.0003" instead... $ src/usleep 400 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 0.0004" instead... $ src/usleep 1000 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 0.001" instead... $ src/usleep 10000 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 0.01" instead... $ src/usleep 100000 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 0.1" instead... $ src/usleep 1000000 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 1" instead... $ src/usleep 10000000 warning: usleep is deprecated, and will be removed in near future! warning: use "sleep 10" instead... For very small and very large values, printf uses scientific notation, but that seems nicer than using %.f which would always leave trailing zeroes. sleep accepts scientific notation, so things should still work. https://bugzilla.redhat.com/show_bug.cgi?id=1494168
* 9.779.77David Kaspar [Dee'Kej]2017-08-151-1/+5
|