openwrt/package/base-files/files/etc
Roman Yeryomin 0b1fa809d0 base-files: rc.common: fix enable() return code and logic
In current state, if there is START but no STOP, enbale()
will return 1 (failure), which is wrong.
Moreover there is no need to check for START/STOP twice.
Instead, add err variable to save success state and
and return it's value.
Also eliminate the need to disable() by using 'ln -sf',
which will first delete the old symlink if one exists.

Changes from v1:
- fixed description

Signed-off-by: Roman Yeryomin <roman@advem.lv>
2018-01-02 07:14:08 +01:00
..
board.d base-files: remove default /etc/config/network, generate it via board.d instead 2016-01-25 16:30:41 +00:00
hotplug.d/net sysctl: read settings from /etc/sysctl.d/*.conf 2015-07-07 13:47:23 +00:00
init.d merge: base: update base-files and basic config 2017-12-08 19:41:18 +01:00
iproute2 base-files: add /etc/iproute2/rt_protos 2017-01-18 13:15:28 +01:00
rc.button base-files: Ensure reset only works if an overlay exists 2016-10-27 12:45:05 +02:00
sysctl.d sysctl: read settings from /etc/sysctl.d/*.conf 2015-07-07 13:47:23 +00:00
uci-defaults base-files: fix user creation on sysupgrade with few opkg control files 2017-01-24 19:08:41 +01:00
banner merge: release/banner: drop release name and update banner 2017-12-08 19:41:18 +01:00
banner.failsafe failsafe-mode: print short help on commandline 2014-10-20 06:29:05 +00:00
device_info base-files: add URL option for OEM manufacturer info 2015-10-05 10:28:53 +00:00
diag.sh
fstab base-files: remove fstab symlink 2016-06-17 04:13:07 +02:00
group base-files: add "tty" user group 2017-06-26 10:02:20 +02:00
hosts base-files: add /etc/hosts entries for ::1, ff02::1 and ff02::2 2015-09-02 11:54:03 +00:00
inittab image / basefiles: make console password configurable 2016-04-18 21:53:07 +02:00
openwrt_release merge: properly remove %n / %N references 2017-12-09 16:01:14 +01:00
openwrt_version build: adjust version number handling 2016-12-02 16:02:02 +01:00
os-release base-files: Add standard os-release file 2016-06-24 13:52:53 +02:00
passwd
preinit preinit: use only the image config options 2016-08-10 03:04:08 +02:00
profile base-files: fix logic when to show failsafe banner 2017-12-29 15:58:16 +01:00
protocols base-files: add DCCP to /etc/protocols 2015-11-15 22:09:13 +00:00
rc.common base-files: rc.common: fix enable() return code and logic 2018-01-02 07:14:08 +01:00
rc.local
services base-files: add submission service port 2017-03-11 05:53:33 +01:00
shadow the root password should be empty for real, like before 2014-02-21 10:39:14 +00:00
shells
sysctl.conf basefiles: allow suid coredumps 2017-09-12 22:18:45 +02:00
sysupgrade.conf