aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* network: fix set_link_up()Jan Macku2020-12-171-3/+1
| | | | This patch fixes issue, when interface wasn't bring up.
* network: add option to keep the link downJan Macku2020-12-039-16/+25
| | | | | | | | Some interfaces like Open vSwitch bridges using the userspace datapath, needs the link to be kept down to avoid issues. Add a LINKSTATUS=[down|up] ifcfg parameter to add this functionality. If not specified, the link will default to up as before. Patch provided by Matteo Croce <mcroce@redhat.com>
* Rework of shell ciJan Macku2020-12-034-23/+134
| | | | | | | | | | | | Bug fixes: * ci now checks only shell scripts New features: * add ability to ignore specific warnings * ci test files containing shebang #!/bin/bash or #!/bin/sh * ci test files with .sh extension * add ability to use inline comments in list files * use of colors in output * make code cleaner
* 10.0610.06Jan Macku2020-11-131-1/+5
|
* service: catch unsupported action keywordsJan Macku2020-11-111-2/+2
| | | | Resolves: #1894492
* makefile: Use rpmdev-bumpspec's legacy date optionJan Macku2020-11-062-2/+2
| | | Start using legacy date-stamp to remain consistent changelog
* 10.0510.05Jan Macku2020-11-061-1/+13
|
* service: Prevent variables from globbingJan Macku2020-11-061-8/+8
|
* init.d/functions: Make usage msgs more clearJan Macku2020-11-061-6/+6
|
* network-scripts: Use net_log() instead of loggerJan Macku2020-11-052-10/+8
| | | | Use internal network-scripts function net_log() instead of /usr/bin/logger if possible to make code more consistent and cleaner.
* Allow updating rfkill switch status while in readonly root modeJan Macku2020-11-051-0/+1
| | | Adding rfkill switch status into rwtab.
* Add info into specfile about readonly-root deprecationJan Macku2020-11-051-0/+3
|
* Allow updating mlocate.db while in readonly root modeJan Macku2020-09-181-0/+1
| | | | Fixes issue when updatedb does not have the ability to update the mlocate.db
* rc.d/functions: replace grep's --quiet with -qChaitanya Vadrevu2020-08-181-1/+1
| | | | | | Some versions of grep (like busybox's) do not support --quiet. So use -q instead like in the rest of the file. Signed-off-by: Chaitanya Vadrevu <chaitanya.vadrevu@ni.com>
* Add warning to warn user when ETHTOOL_OPTS is set and ethtool binary is ↵Jan Macku2020-08-121-17/+21
| | | | missing - Olav Vitters
* Fix spacing in MakefileJan Macku2020-07-271-1/+1
|
* Add optional 'dev' keywordJan Macku2020-07-242-3/+3
| | | | | | | | Fix the problem when the device name could be interpreted as an iproute2 keyword. For example, for a bridge slave named "a" the iproute2 would treat the name as a prefix of keyword "address" and the network-scripts would fail to set the bridge master. Related: rhbz #1859785
* 10.0410.04Jan Macku2020-07-141-1/+9
|
* Maintain permisision to set umaskzhangnaru06052020-07-141-0/+3
| | | set umask in case resolv.conf doesn't exist
* rwtab: Add support for chronyJan Macku2020-07-141-1/+2
| | | | | | Chrony isn't able to write into its files while stateless mode is active.This patch should avoid this issue. (cherry picked from commit 21c44a8e9a68a3a9d39a7fe003096434cea904ea)
* Correct spelling, IP, …Allan Nordhøy2020-07-141-1/+1
|
* Fix spelling, for more infoAllan Nordhøy2020-07-141-1/+1
|
* Fix spelling of SELinuxAllan Nordhøy2020-07-141-1/+1
|
* Translations update from WeblateWeblate (bot)2020-07-1461-30296/+34515
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Translated using Weblate (French) Currently translated at 100.0% (149 of 149 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/fr/ * Translated using Weblate (Turkish) Currently translated at 100.0% (149 of 149 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/tr/ * Translated using Weblate (Ukrainian) Currently translated at 100.0% (149 of 149 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/uk/ * Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/ * Translated using Weblate (Turkish) Currently translated at 100.0% (149 of 149 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/tr/ Translated using Weblate (Turkish) Currently translated at 100.0% (149 of 149 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/tr/ Translated using Weblate (Turkish) Currently translated at 100.0% (149 of 149 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/tr/ Translated using Weblate (Turkish) Currently translated at 100.0% (149 of 149 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/tr/ Translated using Weblate (Turkish) Currently translated at 100.0% (149 of 149 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/tr/ Translated using Weblate (Turkish) Currently translated at 100.0% (149 of 149 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/tr/ * Translated using Weblate (Polish) Currently translated at 100.0% (158 of 158 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/pl/ * Translated using Weblate (Dutch) Currently translated at 100.0% (158 of 158 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/nl/ * Translated using Weblate (Ukrainian) Currently translated at 100.0% (158 of 158 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/uk/ * Translated using Weblate (French) Currently translated at 100.0% (158 of 158 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/fr/ * Translated using Weblate (Danish) Currently translated at 100.0% (158 of 158 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/da/ Translated using Weblate (Danish) Currently translated at 87.9% (139 of 158 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/da/ * Translated using Weblate (Hungarian) Currently translated at 96.8% (153 of 158 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/hu/ * Translated using Weblate (Norwegian Bokmål) Currently translated at 91.7% (145 of 158 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/nb_NO/ Translated using Weblate (Danish) Currently translated at 100.0% (158 of 158 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/da/ * Translated using Weblate (Danish) Currently translated at 100.0% (158 of 158 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/da/ * Translated using Weblate (Portuguese) Currently translated at 70.8% (112 of 158 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/pt/ * Translated using Weblate (Portuguese) Currently translated at 70.8% (112 of 158 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/pt/ * Translated using Weblate (Croatian) Currently translated at 77.8% (123 of 158 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/hr/ * Translated using Weblate (Chinese (Simplified)) Currently translated at 100.0% (158 of 158 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/zh_CN/ * Translated using Weblate (Italian) Currently translated at 69.6% (110 of 158 strings) Translation: fedora-sysv/initscripts Translate-URL: https://translate.fedoraproject.org/projects/fedora-sysv/initscripts/it/ Co-authored-by: Julien Humbert <julroy67@gmail.com> Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com> Co-authored-by: Yuri Chornoivan <yurchor@ukr.net> Co-authored-by: Piotr Drąg <piotrdrag@gmail.com> Co-authored-by: Geert Warrink <geert.warrink@onsnet.nu> Co-authored-by: scootergrisen <scootergrisen@gmail.com> Co-authored-by: Balázs Meskó <meskobalazs@mailbox.org> Co-authored-by: Allan Nordhøy <epost@anotheragency.no> Co-authored-by: Manuela Silva <mmsrs@sky.com> Co-authored-by: Milo Ivir <mail@milotype.de> Co-authored-by: Charles Lee <lchopn@gmail.com> Co-authored-by: Enrico Bella <enric@e.email>
* 10.0310.03Jan Macku2020-03-241-1/+23
|
* Replace grep -EL with subshell since -L changed behaviourJan Macku2020-03-241-2/+2
| | | | | Sugested by @lnykryn Related to issue #300
* Wait for scope link addresses as well as for scope global addressesJan Macku2020-03-241-3/+3
| | | | Resolves: rhbz#1773798
* Remove deprecated option -m of pidofJan Macku2020-03-241-2/+2
| | | | | Resolves: #1798128 Co-authored-by: Lukáš Nykrýn <lnykryn@redhat.com>
* Use function is_true for testing true conditionsJan Macku2020-03-092-2/+2
|
* Adding new travis job for testing shell-scriptsJan Macku2020-02-184-2/+141
| | | | | | | | CI job uses shellcheck csdiff and csgrep to check changes between merge branch and PR commits. IT ignores existing "warnings and notes" but fail on added "errors, warnings or notes". NOTE: CI job checks only shell-scripts present in .ci/script-list.txt file
* Remove zanata confJan Macku2020-02-031-9/+0
|
* pull latest translationsJean-Baptiste2020-01-2761-2231/+4735
| | | | | | | | | | * pull latest translations * fix \n Zanata -> Weblate Co-authored-by: Jan Macku <jamacku@redhat.com>
* Update of translations and remove files with no translationsJan Macku2020-01-2721-13956/+87
| | | Zanata -> Weblate
* Fix service network stop cmdJan Macku2019-11-291-6/+15
|
* Change spacing of service file to folow spacing of projectJan Macku2019-11-261-59/+59
|
* network-function: bridges are created by ifup-ethLukáš Nykrýn2019-10-171-0/+3
| | | Resolves: rhbz#1404265
* Initscripts no longer care about rc.localJan Macku2019-10-152-4/+0
|
* Repalace hardcoded tests for yes and no with testing functionsJan Macku2019-09-1211-68/+66
| | | Resolve issue: #42
* ifup-eth: Fix bridge setting stp optionBell2019-08-211-1/+1
| | | | | | | | | | | Fixes https://bugzilla.redhat.com/1743522 An uninitialized variable was copied from a closed PR [1] to submitted PR [2]. [1] https://github.com/fedora-sysv/initscripts/pull/212 [2] https://github.com/fedora-sysv/initscripts/pull/213 Signed-off-by: Bell Levin <blevin@redhat.com>
* Fix bug in service(8)Jan Macku2019-08-211-1/+1
|
* ifup-eth: Check that device name is setJan Macku2019-08-191-0/+5
|
* Fix missing python3 during build phaseJan Macku2019-08-123-3/+7
|
* rc.d/functions: fix escape sequence being output under systemd service unitsHATAYAMA Daisuke2019-08-071-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When functions provided by /etc/rc.d/functions is used, escape sequence is output under systemd service units and logged into /var/log/messages as follows: # LANG=C systemctl cat foobar.service # /etc/systemd/system/foobar.service [Unit] Description=FOOBAR [Service] Type=oneshot ExecStart=/usr/bin/foobar.sh RemainAfterExit=yes [Install] WantedBy=multi-user.target # cat /usr/bin/foobar.sh #! /bin/bash . /etc/init.d/functions echo_success # LANG=C grep foobar.sh /var/log/messages Aug 7 09:29:54 localhost foobar.sh[29607]: #033[60G[#033[1;32m OK #033[0;39m]#015#033[60G[#033[1;31mFAILED#033[0;39m] This is a regression issue caused by the commit f88dbd98e992 where consoletype command was dropped. Under systemd service units, standard input is associated with /dev/null by default: # systemctl show -p StandardInput foobar.service StandardInput=null man 5 systemd.exec: StandardInput= Controls where file descriptor 0 (STDIN) of the executed processes is connected to. Takes one of null, tty, tty-force, tty-fail, data, file:path, socket or fd:name. If null is selected, standard input will be connected to /dev/null, i.e. all read attempts by the process will result in immediate EOF. consoletype command interprets /dev/null as serial: # consoletype < /dev/null warning: consoletype is now deprecated, and will be removed in the near future! warning: use tty (1) instead! More info: 'man 1 tty' serial The commit f88dbd98e992 overlooks this situation. To fix this issue, check also "not a tty" to cover the case where standard input is /dev/null. Note that LANG=C is needed because the message "not a tty" varies depending on locales.
* Add ip6gre tunnel optionJan Macku2019-07-313-2/+7
| | | | Resolve: BZ #1691552
* ifup/ifdown: print DEPRECATION_WARNING_ISSUED waring info after source_configZhiqiang Liu2019-07-252-12/+12
| | | | | | | | | In ifup/ifdown scripts, move deprecation waring info after source_config, so users can config DEPRECATION_WARNING_ISSUED in ifcfg-** file to decide whether show deprecation waring info when calling ifup/ifdown. Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
* 10.0210.02Jan Macku2019-06-281-1/+11
|
* network: don't fail with IFDOWN_ON_SHUTDOWNLukas Nykryn2019-06-101-2/+2
|
* rc.d/functions: remove support cgroupsLukas Nykryn2019-06-062-23/+2
| | | | | Now with systemd, this does not work pretty well and users really should use systemd unit-files for this.
* Create symlink (/etc/init.d) to /etc/rc.d/init.dJan Macku2019-06-062-0/+3
| | | | Resolve problem when wasn't installed chkconfig package. BZ #1716386
* Add option to wait until target is reachableJan Macku2019-04-042-1/+23
| | | | | | | | | | | | | | | | | | Add option for time saving waiting Replace date with simple timeout Rename configurable variable and add documentation Print log only when didn't reach IP address in time Add support for IPv6 address Remove unneeded output Change -ge to -gt, because equal value is ok Clarify DNS name option in documentation