Compare commits
	
		
			20 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | ea047033c4 | ||
|   | 2bad4da891 | ||
|   | 3c5244fb6a | ||
|   | f1134f4efe | ||
|   | 9f68514f8a | ||
|   | b16625e625 | ||
|   | 5dc13a0ff2 | ||
|   | c094c75f34 | ||
|   | 0e925c511d | ||
|   | 9ae469289d | ||
|   | d8ed89971b | ||
|   | a537bd7abb | ||
|   | a13f2b91b2 | ||
|   | b5a7222fe0 | ||
|   | ace8dfdaae | ||
|   | 7056107725 | ||
|   | 5df511e9e4 | ||
|   | 60ede6b687 | ||
|   | c2f2533db0 | ||
|   | e627ad4804 | 
| @@ -22,9 +22,6 @@ or recognize the nofail option in fstab. | ||||
|  | ||||
| CONFIG_SETFONT -- The setfont applet does not support the -u option from kbd. | ||||
|  | ||||
| CONFIG_IP -- The ip applet  doesn't support the "scope" modifier for | ||||
| "ip route add" and "ip address add". | ||||
|  | ||||
| CONFIG_BB_SYSCTL -- The sysctl applet does not support the --system command | ||||
| line switch. | ||||
|  | ||||
|   | ||||
							
								
								
									
										384
									
								
								ChangeLog
									
									
									
									
									
								
							
							
						
						
									
										384
									
								
								ChangeLog
									
									
									
									
									
								
							| @@ -1,3 +1,166 @@ | ||||
| commit 2bad4da89119c0385f9c92baef148590fb576c88 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     init.d/loopback.in: drop the route to the loopback interface on Linux | ||||
|      | ||||
|     This is related to #103. | ||||
|  | ||||
| commit 3c5244fb6acaed01cd186c356e2730f12c77ca99 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     init.d/mount-ro: do not remount /usr read only if it is premounted | ||||
|      | ||||
|     X-Gentoo-Bug: 573760 | ||||
|     X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573760 | ||||
|  | ||||
| commit f1134f4efefdc9b71b2e2c68aacf9b3f3b0ad7c0 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     conf.d/net-online: clarify comment about interfaces setting | ||||
|      | ||||
|     This setting refers to all interfaces that support ethernet | ||||
|  | ||||
| commit 9f68514f8ab9a2d4bf7e095b3a41b3c2043d07fe | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     init.d/net-online: remove interfaces and timeout from local declarations | ||||
|      | ||||
|     X-Gentoo-Bug:  598621 | ||||
|     X-Gentoo-Bug-URL:  https://bugs.gentoo.org/show_bug.cgi?id=598621 | ||||
|  | ||||
| commit b16625e62502c2924f9c00ab144845b93857f6c7 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     src/rc/rc: do not try to start services if fork fails | ||||
|  | ||||
| commit 5dc13a0ff21f2e0a0b23e32e864a19f7f0a2766f | ||||
| Author: Robin H. Johnson <robbat2@gentoo.org> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     init.d/loopback: drop scope on loopback | ||||
|      | ||||
|     Busybox does not support the 'scope' argument on 'ip address add' or 'ip | ||||
|     route add', this is documented in BUSYBOX.md, but is no longer actually | ||||
|     needed, as the kernel does get it right without manual specification, | ||||
|     and the ifconfig variant already relies on the kernel to get it right. | ||||
|     This is part of #103. | ||||
|      | ||||
|     X-Gentoo-Bug: 487208 | ||||
|     X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=487208 | ||||
|  | ||||
| commit c094c75f34776ccae2a89dcb8b6c19d7a8155f56 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     src/rc/rc-misc.c: report error if call to flock() fails | ||||
|      | ||||
|     X-Gentoo-Bug: 597390 | ||||
|     X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=597390 | ||||
|  | ||||
| commit 0e925c511d202257b04b27a6ff2a4563bf2f1469 | ||||
| Author: Sven Wegener <swegener@gentoo.org> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     do_service: Initialize idx to 0 | ||||
|      | ||||
|     If index is not explicitly specified for service_started_daemon, it will | ||||
|     look for daemons by random index. | ||||
|      | ||||
|     This fixes #100. | ||||
|  | ||||
| commit 9ae469289d89313dc3e6076f089a87015852a788 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     version 0.22.3 | ||||
|  | ||||
| commit d8ed89971bd2a9fa7cc5014f4d791220a915a3d6 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     update ChangeLog | ||||
|  | ||||
| commit a537bd7abb8d3d1841635c78f9163e6d1abad0ba | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     init.d/sysfs: load efivarfs module when booting in efi mode | ||||
|      | ||||
|     The presence of /sys/firmware/efi is used to indicate that the system | ||||
|     was booted in efi mode. | ||||
|  | ||||
| commit a13f2b91b2e5337d659844be19fd302a0f21b288 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     init.d/sysfs: fix efivarfs module test | ||||
|  | ||||
| commit b5a7222fe062c691ba5d05d27195eeb646c90b86 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     init.d/sysfs: fix efivarfs handling | ||||
|      | ||||
|     Separate loading the module, if it isn't built in or loaded, from | ||||
|     mounting the file system. | ||||
|      | ||||
|     This also makes sure the warning about configuring the module in | ||||
|     /etc/conf.d/modules or building it in is displayed only if it is loaded | ||||
|     successfully. | ||||
|      | ||||
|     X-Gentoo-Bug: 595836 | ||||
|     X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=595836 | ||||
|  | ||||
| commit ace8dfdaae24f49a7397f72550b09543025c2173 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     version 0.22.2 | ||||
|  | ||||
| commit 70561077250e7684d14203d3ed1c2c9f0bad2380 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     Update ChangeLog | ||||
|  | ||||
| commit 5df511e9e435726e6c16698eae7fda0960d7c021 | ||||
| Author: Doug Freed <dwfreed@mtu.edu> | ||||
| Commit: Doug Freed <dwfreed@mtu.edu> | ||||
|  | ||||
|     openrc-run: fix double free | ||||
|  | ||||
| commit 60ede6b687590282fab7fd7a7aa38a3c7c9958d7 | ||||
| Author: Doug Freed <dwfreed@mtu.edu> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     init.d: Clean up some bad ewarn output | ||||
|  | ||||
| commit c2f2533db07ff346c5a5ade987c43a526f805341 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     typo fix | ||||
|      | ||||
|     X-Gentoo-Bug: 595306 | ||||
|     X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=595306 | ||||
|  | ||||
| commit e627ad48040437be8a5242ea4a418a0eeca95306 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     version 0.22.1 | ||||
|  | ||||
| commit b71bcc242202752bc74fce3a5c629f172b04fca5 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     update ChangeLog | ||||
|  | ||||
| commit 24010dcb483cf7284cd8a5db111ae63f0d4e1038 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
| @@ -1318,224 +1481,3 @@ Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|     directory @SYSCONFDIR@/rc.conf.d and putting files in this directory. | ||||
|     The files will be processed in lexical order, and the last setting in | ||||
|     these files will be used. | ||||
|  | ||||
| commit 4cf6b0ecf7f5b35a6d80d76c60e77c3e1c7fee5c | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     consolefont: add after modules to dependencies | ||||
|      | ||||
|     X-Gentoo-Bug: 559540 | ||||
|     X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=559540 | ||||
|  | ||||
| commit ee944553a9ea35622046bd1ab5657fd416a7019a | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     bootmisc: optionally save the previous dmesg log | ||||
|      | ||||
|     X-Gentoo-Bug: 561204 | ||||
|     X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=561204 | ||||
|  | ||||
| commit 6cae41a4e63510cdcf3af1153d6e8300435e1838 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     etc/rc.conf: Clean up documentation for rc_hotplug | ||||
|      | ||||
|     X-Gentoo-Bug: 554540 | ||||
|     X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=554540 | ||||
|  | ||||
| commit 960881fcfe974178c0846a816663a258cdd488cc | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     Add net-online service | ||||
|  | ||||
| commit d26013494db8ea8699db9815ef4c4b0eb2f55e7f | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     mtab: typo fix | ||||
|  | ||||
| commit b29b2fb3cb3e73b4453483ced908f0ef10e47e9c | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     mtab: make /etc/mtab as a file configurable | ||||
|  | ||||
| commit 7da72ce487a8d92d992e7fd3db881c198ae02609 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     openrc-run.sh: fix new required_* tests to exit properly | ||||
|  | ||||
| commit fc777aeaf3e6e2d47f4599acfe6c8d1bf5bc760a | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     typo fix | ||||
|      | ||||
|     X-Gentoo-Bug: 563010 | ||||
|     X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=563010 | ||||
|  | ||||
| commit 9d53d436ae22d6f0f6fc1537e836dd1b4d31cf35 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     sysfs: consolidate cgroup processing code in a single function | ||||
|  | ||||
| commit b81317bdf8e3eed8b8ff2bef757ba29f362ed297 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     mountinfo: make sure the netdev variable is initialized on Linux | ||||
|      | ||||
|     This fixes the following regression: | ||||
|      | ||||
|     X-Gentoo-Bug: 562668 | ||||
|     X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562668 | ||||
|  | ||||
| commit 29f7e335927d4c1fb151124de8cdf01fb87723fa | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     openrc-run.sh: allow spaces in required_{files,dirs} | ||||
|      | ||||
|     X-Gentoo-Bug: 562320 | ||||
|     X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562320 | ||||
|  | ||||
| commit 850ca030777cb0c3e2fb03d9ab1f0ccee7b89e93 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     increment version number | ||||
|  | ||||
| commit 050ddfae4ad1ad0dc5993766e0bd90739bd41de9 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     Update ChangeLog | ||||
|  | ||||
| commit d5116cc697c9eb275ab8497939ab41504e5ce578 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     localmount: white space cleanup | ||||
|  | ||||
| commit b86d170037197d7bdcda57c7d4c09c17bda97f31 | ||||
| Author: Ian Stakenvicius <axs@gentoo.org> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     localmount: clean up handling of aufs branches | ||||
|      | ||||
|     X-Gentoo-Bug: 560008 | ||||
|     X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=560008 | ||||
|  | ||||
| commit 6fa0d6318bcd5c98548cff2ff840bca116892ca5 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     mtab: fix update logic | ||||
|      | ||||
|     This advises users to remove mtab from their runlevels if /etc/mtab is a | ||||
|     symlink, and it creates the symlink if /etc/mtab does not exist on a | ||||
|     system. | ||||
|      | ||||
|     X-Gentoo-Bug: 560060 | ||||
|     X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=560060 | ||||
|  | ||||
| commit 80d3928b0d13f09a9c1e82bd27c9fff943d84d43 | ||||
| Author: Austin S. Hemmelgarn <ahferroin7@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     cgroups: Add the hugetlb, net_cls and pids controllers | ||||
|      | ||||
|     Note from WilliamH: I slightly rearranged the code and added the | ||||
|     settings in rc.conf. | ||||
|      | ||||
|     X-Gentoo-Bug: 555488 | ||||
|     X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=555488 | ||||
|  | ||||
| commit 17ef205bc63a4e231dccee719394a7a8563f8c3f | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     sysfs: use printf instead of echo to write to cgroup files | ||||
|      | ||||
|     This is needed for compatibility with musl and printf is also posix. | ||||
|      | ||||
|     X-Gentoo-Bug: 562334 | ||||
|     X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562334 | ||||
|  | ||||
| commit b20a1951adf9a705a903fb3047b7ef26c013103c | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     rc-cgroup.sh: Do not add leading spaces to cgroup values | ||||
|      | ||||
|     We were starting the value we write to the cgroup setting file with | ||||
|     leading spaces and this was causing issues. This change makes sure that | ||||
|     we aren't adding leading spaces to the value. | ||||
|      | ||||
|     X-Gentoo-Bug: 562354 | ||||
|     X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=562354 | ||||
|  | ||||
| commit bf0c0dd5644436efe4986c2b259b755d111266b9 | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     bootmisc: convert errors in clean_run function to warnings | ||||
|      | ||||
|     X-Gentoo-Bug: 552418 | ||||
|     X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=552418 | ||||
|  | ||||
| commit 1558ad2b9ebf319b85876a940d31d513bf21324f | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     bootmisc: only remove temp directory if umount is successful | ||||
|      | ||||
|     Change the clean_run function to only remove the temp directory if the | ||||
|     umount was successful. | ||||
|      | ||||
|     X-Gentoo-Bug: 561230 | ||||
|     X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=561230 | ||||
|  | ||||
| commit 5f4f2420364098835522da868a9e75205c9e4f9c | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     mountinfo: fix --netdev and --nonetdev on Linux | ||||
|      | ||||
|     On Linux, the --netdev and --nonetdev switches were not working. They | ||||
|     were both returning false. After this change, they operate based on the | ||||
|     presence or abscence of the _netdev option in mount options. | ||||
|  | ||||
| commit b3f7ff901f7d3ed00b9f73c601193ac507f62eaf | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     mountinfo: read /proc/self/mounts instead of /proc/mounts on Linux | ||||
|  | ||||
| commit a59365a582c3a8c9a8b863b572fddcb65fccadfd | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     start-stop-daemon.sh: complain in start if command is undefined | ||||
|      | ||||
|     The default start-stop-daemon start function expects the command | ||||
|     variable to be defined to point to the daemon we want to start. | ||||
|      | ||||
|     If the variable is undefined, this means that there will be nothing to | ||||
|     start, and in this case we should complain because it is possible that | ||||
|     the script writer made a typo in the variable name. | ||||
|  | ||||
| commit dac5966ca40610797d2b2aabef17154ca3dc20af | ||||
| Author: William Hubbs <w.d.hubbs@gmail.com> | ||||
| Commit: William Hubbs <w.d.hubbs@gmail.com> | ||||
|  | ||||
|     Revert "local/netmount: remove uses of -O [no]_netdev" | ||||
|      | ||||
|     This reverts commit 2a439c85bd69efc14847b4397bd6783cac051405. | ||||
|     There is another use case for -O involving iscsi, so we can't remove it. | ||||
|   | ||||
| @@ -1,3 +1,3 @@ | ||||
| NAME=		openrc | ||||
| VERSION=	0.22 | ||||
| VERSION=	0.22.3 | ||||
| PKG=		${NAME}-${VERSION} | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| # The interfaces setting controls which interfaces the net-online | ||||
| # service considers in deciding whether the network is active. By | ||||
| # default, it is all ethernet or wireless LAN interfaces. | ||||
| # service considers in deciding whether the network is active. The | ||||
| # default is all interfaces that support ethernet. | ||||
| #interfaces="" | ||||
|  | ||||
| # This setting controls whether a ping to the default gateway is | ||||
|   | ||||
| @@ -239,7 +239,7 @@ rc_tty_number=12 | ||||
| # Set the pids controller settings for this service. | ||||
| #rc_cgroup_pids="" | ||||
|  | ||||
| # Set this to YES if yu want all of the processes in a service's cgroup | ||||
| # Set this to YES if you want all of the processes in a service's cgroup | ||||
| # killed when the service is stopped or restarted. | ||||
| # This should not be set globally because it kills all of the service's | ||||
| # child processes, and most of the time this is undesirable. Please set | ||||
|   | ||||
| @@ -106,8 +106,8 @@ start() | ||||
| 				modprobe -q $x && rtc_exists && modname="$x" && break | ||||
| 			done | ||||
| 			[ -n "$modname" ] && | ||||
| 				ewarn "The $modname module needs to be configured in \ | ||||
| 					@SYSCONFDIR@/conf.d/modules or built in." | ||||
| 				ewarn "The $modname module needs to be configured in" \ | ||||
| 					"@SYSCONFDIR@/conf.d/modules or built in." | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
|   | ||||
| @@ -99,8 +99,8 @@ stop() | ||||
| 				aufs_branch=$(sed 's/=.*//g' $x) | ||||
| 				eindent | ||||
| 				if ! mount -o "remount,del:$aufs_branch" "$aufs_mount_point" > /dev/null 2>&1; then | ||||
| 					ewarn "Failed to remove branch $aufs_branch from aufs \ | ||||
| 					$aufs_mount_point" | ||||
| 					ewarn "Failed to remove branch $aufs_branch from aufs" \ | ||||
| 					"$aufs_mount_point" | ||||
| 				fi | ||||
| 				eoutdent | ||||
| 				sync | ||||
|   | ||||
| @@ -21,12 +21,10 @@ start() | ||||
| 	if [ "$RC_UNAME" = Linux ]; then | ||||
| 		ebegin "Bringing up network interface lo" | ||||
| 		if command -v ip > /dev/null 2>&1; then | ||||
| 			ip addr add 127.0.0.1/8 dev lo brd + scope host | ||||
| 			ip route add 127.0.0.0/8 dev lo scope host | ||||
| 			ip addr add 127.0.0.1/8 dev lo brd + | ||||
| 			ip link set lo up | ||||
| 		else | ||||
| 			ifconfig lo 127.0.0.1 netmask 255.0.0.0 | ||||
| 			route add -net 127.0.0.0 netmask 255.0.0.0 gw 127.0.0.1 | ||||
| 		fi | ||||
| 	else | ||||
| 		ebegin "Bringing up network interface lo0" | ||||
|   | ||||
| @@ -34,6 +34,9 @@ start() | ||||
|  | ||||
| 	local m="/dev|/dev/.*|/proc|/proc.*|/sys|/sys/.*|/run|${rc_svcdir}" x= fs= | ||||
| 	m="$m|/bin|/sbin|/lib(32|64)?|/libexec" | ||||
| 	if [ -e "$rc_svcdir"/usr_premounted ]; then | ||||
| 		m="$m|/usr" | ||||
| 	fi | ||||
| 	# RC_NO_UMOUNTS is an env var that can be set by plugins | ||||
| 	local IFS="$IFS:" | ||||
| 	for x in $no_umounts $RC_NO_UMOUNTS; do | ||||
|   | ||||
| @@ -42,8 +42,8 @@ get_default_gateway() | ||||
|  | ||||
| start () | ||||
| { | ||||
| 	local carriers configured dev gateway ifcount infinite interfaces | ||||
| 	local rc state timeout x | ||||
| 	local carriers configured dev gateway ifcount infinite | ||||
| 	local rc state x | ||||
|  | ||||
| 	ebegin "Checking to see if the network is online" | ||||
| 	rc=0 | ||||
|   | ||||
| @@ -26,8 +26,8 @@ start() | ||||
| 		[ ! -e /proc/sys/fs/binfmt_misc/register ]; then | ||||
| 		if ! grep -qs binfmt_misc /proc/filesystems && | ||||
| 			modprobe -q binfmt-misc; then | ||||
| 			ewarn "The  binfmt-misc module needs to be configured in \ | ||||
| 				@SYSCONFDIR@/conf.d/modules or built in." | ||||
| 			ewarn "The binfmt-misc module needs to be configured in" \ | ||||
| 				"@SYSCONFDIR@/conf.d/modules or built in." | ||||
| 		fi | ||||
| 		if grep -qs binfmt_misc /proc/filesystems; then | ||||
| 			ebegin "Mounting misc binary format filesystem" | ||||
|   | ||||
| @@ -98,20 +98,23 @@ mount_misc() | ||||
| 		fi | ||||
| 	fi | ||||
|  | ||||
| 	# setup up kernel support for efivarfs | ||||
| 	# slightly complicated, as if it's build as a module but NOT yet loaded, | ||||
| 	# it will NOT appear in /proc/filesystems yet | ||||
| 	if [ -d /sys/firmware/efi/efivars ] \ | ||||
| 		&& ! mountinfo -q /sys/firmware/efi/efivars; then | ||||
| 		if modprobe -q efivarfs; then | ||||
| 			ewarn "The efivarfs module needs to be configured in \ | ||||
| 				@SYSCONFDIR@/conf.d/modules or built in" | ||||
| 	# set up kernel support for efivarfs | ||||
| 	# The presence of /sys/firmware/efi indicates that the system was | ||||
| 	# booted in efi mode. | ||||
| 	if [ -d /sys/firmware/efi ]; then | ||||
| 		if [ ! -d /sys/firmware/efi/efivars ] && | ||||
| 			modprobe -q efivarfs; then | ||||
| 			ewarn "The efivarfs module needs to be configured in " \ | ||||
| 				  "@SYSCONFDIR@/conf.d/modules or built in" | ||||
| 		fi | ||||
| 		if grep -qs efivarfs /proc/filesystems; then | ||||
| 			ebegin "Mounting efivarfs filesystem" | ||||
| 			mount -n -t efivarfs -o ${sysfs_opts} \ | ||||
| 				efivarfs /sys/firmware/efi/efivars | ||||
| 			eend $? | ||||
| 		if [ -d /sys/firmware/efi/efivars ] && | ||||
| 			! mountinfo -q /sys/firmware/efi/efivars; then | ||||
| 			if grep -qs efivarfs /proc/filesystems; then | ||||
| 				ebegin "Mounting efivarfs filesystem" | ||||
| 				mount -n -t efivarfs -o ${sysfs_opts} \ | ||||
| 					efivarfs /sys/firmware/efi/efivars | ||||
| 				eend $? | ||||
| 			fi | ||||
| 		fi | ||||
| 	fi | ||||
| } | ||||
|   | ||||
| @@ -36,7 +36,7 @@ int main(int argc, char **argv) | ||||
| 	bool ok = false; | ||||
| 	char *service; | ||||
| 	char *exec; | ||||
| 	int idx; | ||||
| 	int idx = 0; | ||||
| 	RC_SERVICE state, bit; | ||||
|  | ||||
| 	applet = basename_c(argv[0]); | ||||
|   | ||||
| @@ -1344,6 +1344,7 @@ int main(int argc, char **argv) | ||||
| 			    applet_list, | ||||
| 			    runlevel, depoptions); | ||||
| 			rc_stringlist_free(tmplist); | ||||
| 			tmplist = NULL; | ||||
| 			TAILQ_FOREACH(svc, services, entries) | ||||
| 			    printf("%s ", svc->value); | ||||
| 			printf ("\n"); | ||||
|   | ||||
| @@ -228,6 +228,7 @@ svc_lock(const char *applet) | ||||
| 	if (fd == -1) | ||||
| 		return -1; | ||||
| 	if (flock(fd, LOCK_EX | LOCK_NB) == -1) { | ||||
| 		eerror("Call to flock failed: %s", strerror(errno)); | ||||
| 		close(fd); | ||||
| 		return -1; | ||||
| 	} | ||||
|   | ||||
| @@ -683,6 +683,8 @@ do_start_services(const RC_STRINGLIST *start_services, bool parallel) | ||||
| 		} | ||||
|  | ||||
| 		pid = service_start(service->value); | ||||
| 		if (pid == -1) | ||||
| 			break; | ||||
| 		/* Remember the pid if we're running in parallel */ | ||||
| 		if (pid > 0) { | ||||
| 			add_pid(pid); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user