Roy Marples
51907c7368
If there is an error setting the font, abort instead of trying to set
...
the font for subsequent consoles.
2009-08-19 16:49:35 +01:00
Roy Marples
29949a5496
If mtab is write only and a symlink then assume it's linked to /proc/mounts
...
and don't try and update it. Fixes #185 .
2009-07-20 19:47:08 +01:00
Roy Marples
08b5664668
Only delete /etc/nologin if we can write to it
2009-07-09 13:32:27 +01:00
Roy Marples
9907c90552
Host should configure urandom.
...
Fixes #179 .
2009-07-01 00:13:25 +01:00
Roy Marples
b4104957b1
We should use -feature instead of nofeature.
...
This matches the ifconfig and Gentoo USE flag syntax and is hopefully
easier to read.
Fixes #178 .
2009-07-01 00:07:32 +01:00
Roy Marples
fbb78022f9
Ensure that tmp dirs are +rw as well as +t.
2009-06-13 21:12:50 +01:00
Natanael Copa
79b24f5b79
hwclock now sends help to stderr.
2009-06-12 23:11:16 +01:00
Roy Marples
fc6cdefedb
Linux FHS requires /var/lib/misc
...
Stop fuser from being chatty
2009-06-08 22:18:39 +01:00
Roy Marples
c568baf8c8
Ignore more foo
2009-06-05 09:20:10 +01:00
Roy Marples
aaced3face
Update copyright
2009-06-05 09:20:10 +01:00
Roy Marples
278e65b24a
Ignore termencoding
2009-05-29 22:09:39 +01:00
Roy Marples
1b3a413673
Skip sysctl errors
2009-05-29 22:08:47 +01:00
Roy Marples
a685e4db0a
Add FreeBSD support for AC power.
2009-05-29 21:33:44 +01:00
Roy Marples
e689f17933
Support NetBSD envstat for working out if on AC power.
2009-05-29 21:19:31 +01:00
Roy Marples
fa9e482a31
If not running on AC power don't run fsck to preserve battery life.
2009-05-29 21:06:59 +01:00
Roy Marples
60134ddec5
Only delete addresses for interfaces that exist.
2009-05-29 15:23:23 +01:00
Roy Marples
c0fd1b49e4
Move non compiled libraries from /lib/rc to /libexec/rc
...
OpenRC version is now stored as plaintext in /libexec/rc/version
Plugins (cursplash, splashutils) will have to be re-compiled to pickup
the new directories. State data needs to be moved from /lib/rc/init.d
to /libexec/rc/init.d as well.
2009-05-23 20:38:12 +01:00
Roy Marples
701813b5ff
procfs should use modules.
2009-05-11 15:31:52 +01:00
Roy Marples
d441bf1585
Ignore more foo for the BSDs
2009-05-05 10:29:52 +01:00
Roy Marples
658a220638
Add (c) to Copyright
2009-05-01 15:11:40 +01:00
Roy Marples
b32c9c1139
Ensure that rc.d services are not started twice if PKG_DIR is blank.
...
Fixes #170
2009-05-01 09:37:51 +01:00
Roy Marples
b70501ef45
Go back to git
2009-04-30 15:05:39 +01:00
Roy Marples
48f477f851
Fix a brain fart
2009-04-27 13:58:26 +00:00
Roy Marples
3d43fb6f22
Although the noshutdown keyword is nice, we shouldn't use it for network or dhcpcd. Instead fake network shutdown so it comes back up correctly at boot and KILL dhcpcd to preserve network.
2009-04-27 13:33:37 +00:00
Roy Marples
94b3057571
Add the noshutdown keyword to special case the shutdown.
2009-04-27 12:04:33 +00:00
Roy Marples
e70a142956
Style.
2009-04-27 07:51:18 +00:00
Roy Marples
eaa32c75c9
Add the nostop keyword so that we don't stop the network init script by default.
2009-04-26 21:16:05 +00:00
Roy Marples
1d48183646
Try and set a keymap as early as possible, #169
2009-04-26 11:19:22 +00:00
Roy Marples
bd6bb932df
Don't report final eends for interfaces as they make no sense.
2009-04-25 18:02:28 +00:00
Roy Marples
42580d67b8
Verbosely report vars correctly.
2009-04-25 11:39:18 +00:00
Roy Marples
a2856fe192
Use shell_var for shell variables.
2009-04-19 21:10:06 +00:00
Roy Marples
8e5a601087
Style
2009-04-19 21:02:31 +00:00
Roy Marples
a01f9be6f2
We should use $int for compat with NetBSD
2009-04-19 20:59:46 +00:00
Roy Marples
371506be48
Default to not building the old net scripts.
2009-04-19 20:54:11 +00:00
Roy Marples
bbd810425b
Move special umount of tmpfs to the swap init script where it belongs, #149 .
2009-04-19 11:15:37 +00:00
Roy Marples
170547010f
Pull /etc/ifconfig.eth0 into interfaces
...
Reverse list of interfaces when stopping
Improve build for conf.d/network
2009-04-19 08:52:00 +00:00
Roy Marples
9225c6cefb
Not all systems have the utmp group
2009-04-18 00:56:48 +00:00
Roy Marples
d4c71415a9
Add MKOLDNET=yes/no toggle
2009-04-17 23:23:31 +00:00
Roy Marples
7138c1532c
Typo, thanks to Matthias Schwarzott, #166 .
2009-04-17 09:48:34 +00:00
Roy Marples
6027b0ed7d
Add a new init script - network
...
This simply assigns static addresses and an optional default route.
It's possible to add external commands as well, so to create a bonded interface.
Hopefully we can add a few examples to satisfy most of the old net.lo, which
is no longer installed into boot by default.
2009-04-16 23:47:23 +00:00
Roy Marples
95d954e7b5
Improve utmp handling
2009-04-16 23:39:37 +00:00
Roy Marples
744a8bbb4a
Don't unmount /bin,/sbin,/lib,/libexec in the very silly cases where they are not on /
2009-04-16 23:34:38 +00:00
Roy Marples
cba9f12715
Simplfy rm matching pattern, thanks to cypherpunks@mailinator.com
2009-04-12 12:59:00 +00:00
Roy Marples
0b12faed7f
We should abort boot on some errors.
2009-03-16 21:41:23 +00:00
Roy Marples
66cd081301
Change wipe_tmp_dirs to clean_tmp_dirs so user understands meaning better, #153
2009-02-23 09:36:48 +00:00
Roy Marples
b60f437b52
Fix the number of terminals to operate on.
...
Thanks to Dimitrios Christidis <chrjim@gmail.com>
2009-02-13 12:24:32 +00:00
Roy Marples
d6d2635c51
root should respect inittab, #148 .
2009-02-12 18:12:57 +00:00
Roy Marples
9f3cf59818
hostid does not need root to run
2009-02-11 17:42:14 +00:00
Roy Marples
522ab21fbf
Only create the reboot file if rebooting.
2009-02-10 15:16:25 +00:00
Roy Marples
3d7b56f2e2
Create /reboot if running inside OpenVZ, #138 .
...
This should be fine as vpsreboot should only restart a stopped container.
2009-02-10 15:06:48 +00:00
Roy Marples
3d37005a3d
We now warn about clock skews
...
rc-update -u will force a regen of the dep tree
rc_newer_than and rc_olderthan now take another two parameters for newest/oldest file and mtime
2009-01-12 23:53:13 +00:00
Roy Marples
36c53e7551
Keyword novserver, #137 .
2009-01-06 16:25:33 +00:00
Roy Marples
877a328179
dmesg and sysfs won't work in a vserver, #137 thanks to Hollow.
2009-01-01 14:27:29 +00:00
Roy Marples
22959c3963
Fix working on zsh
2008-12-30 00:05:17 +00:00
Roy Marples
2464f9e93b
Add parens, #134 thanks to Matthias Schwarzott.
2008-12-29 23:06:22 +00:00
Roy Marples
d91201cb94
Skip all forcefsck checking when stopping, #134 .
2008-12-28 15:25:40 +00:00
Roy Marples
1c5ec9d161
Fake get_bootparam function so that we don't check for kernel options forcefsck when doing an fsck on shutdown.
2008-12-28 14:49:07 +00:00
Roy Marples
2c98c5326a
Punt .gitignore files.
2008-12-04 12:12:09 +00:00
Roy Marples
df22978de9
Punt halt init script. sysvinit should install it. See Gentoo bug #246502 on how to handle this.
2008-11-12 16:28:07 +00:00
Roy Marples
0786141026
Restore interface_exists, interface_up and interface_exists, #123 .
2008-11-10 12:31:20 +00:00
Roy Marples
90d175ae27
Remove deprecated use of modprobe -l. If we need this functionaltiy back, we need to use something else, like say find.
2008-11-04 17:08:35 +00:00
Roy Marples
a178fd0f32
We should not update mtab here.
2008-11-04 17:07:32 +00:00
Roy Marples
a3d266e741
Use mount-ro
2008-11-04 11:32:07 +00:00
Roy Marples
42e6a95b1d
Move romount to mount-ro and use the umount -r option as it's more reliable for / --bind mounts, Gentoo #239922 . Thanks to Duncan.
2008-11-04 11:30:15 +00:00
Roy Marples
45044c9239
Typo
2008-11-04 11:28:24 +00:00
Roy Marples
cc14b55414
Now the linx fsck man page has return codes, I find them different from the BSD's so adjust accordingly.
2008-11-04 07:45:05 +00:00
Roy Marples
282ad4bae6
Add descriptions.
2008-11-03 16:16:12 +00:00
Roy Marples
0af7d5bc20
Add a new shutdown runlevel, Gentoo #224537 .
...
Split halt.sh into halt, killprocs, romount and savecache services.
The reboot runlevel is removed but mapped to shutdown.
The halt script should be moved to the sysvinit package.
2008-11-03 15:31:01 +00:00
Roy Marples
f6e3c167ae
Remove bash localisation feature, Gentoo #244444 thanks to Andrey Grozin.
2008-10-26 19:19:19 +00:00
Mike Frysinger
1d96620b84
hwclock: skip rtc checks if kernel lacks module support
...
Since we only use the result of the device scan to load modules, there is
no point in doing the scan if the kernel doesn't support modules in the
first place.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-10-26 07:09:02 +00:00
Roy Marples
734e60608a
Ignore new scripts.
2008-10-16 09:41:14 +00:00
Roy Marples
8d47d6c022
Fix fuser on BSD platforms.
2008-10-15 08:35:21 +00:00
Roy Marples
c18c74e816
Fix adding just the default route, #119 thanks to pva.
2008-10-14 15:27:52 +00:00
Roy Marples
10cb4c18df
Remove hardedcoded foo here.
2008-10-10 09:35:13 +00:00
Roy Marples
d6da8e8c48
sysinit is now a real runlevel that handles things like udev, dmesg and
...
mounting various bits in /dev and /sys.
init.sh JUST mounts /lib/rc/init.d (and /proc for Linux systems)
To make development of this easier we now return an empty RC_STRINGLIST
instead of a NULL for empty things.
If you don't have a udev init script installed, don't reboot your box OR
roll back to an older OpenRC version.
2008-10-10 08:37:21 +00:00
Roy Marples
1a88a43aa5
Warn about sulogin timeout and then continue as normal, Gentoo #240383
2008-10-09 16:34:21 +00:00
Roy Marples
a872fe5590
Fix status check, #239922
2008-10-08 18:32:39 +00:00
Roy Marples
5cdc489573
Fix utmp permissions, Gentoo #240437 .
2008-10-08 13:58:17 +00:00
Roy Marples
4e4c4a5bf4
kenv is not always available.
2008-10-03 17:50:30 +00:00
Roy Marples
5f76c1121a
Clean stale sockets.
2008-10-01 21:12:54 +00:00
Roy Marples
abe94bec6f
Load rtc-cmos if needed, Gentoo #235647 thanks to Robin Johnson.
2008-09-27 06:48:21 +00:00
Roy Marples
27805de20a
Allow forcefsck on the kernel command line, Gentoo #218431
2008-09-22 12:32:11 +00:00
Roy Marples
00d010fbe0
Work without IP6 kernels, #108
2008-08-29 06:43:54 +00:00
Roy Marples
01de348ede
Add rpc.lockd to netmount.in for BSD
2008-08-27 16:06:01 +00:00
Roy Marples
1f227d62bf
Allow renaming of modules, #103 thanks to Sven.
2008-08-19 15:25:06 +00:00
Roy Marples
cdace75539
OpenVZ can mount NFS shares.
2008-08-19 06:44:47 +00:00
Roy Marples
b15c4758f8
We should unmount / here.
2008-07-09 18:28:14 +00:00
Roy Marples
289889ebf0
Fix unmounting some more.
2008-07-09 17:05:10 +00:00
Roy Marples
7183cb1b18
Fix last commit
2008-07-09 16:20:48 +00:00
Roy Marples
b83108cd2e
Add a knob to avoid the unmounting of some points.
2008-07-09 16:08:38 +00:00
Roy Marples
1ca63447c9
Hide mkdir error's
2008-07-09 15:22:15 +00:00
Roy Marples
c2781c209e
Really test if we can write to RC_LIBDIR or not.
2008-07-09 15:12:56 +00:00
Roy Marples
5983add0f2
No point in re-mounting ro filesystems that are already ro.
2008-07-09 14:24:48 +00:00
Roy Marples
f2ea7ca514
Let ifdown control all interfaces.
2008-06-03 11:51:36 +00:00
Roy Marples
3a592fa31b
Trap fsck for SIGINT as well, so user can ctrl-C to abort fsck and continue, Gentoo #223473 .
2008-05-27 10:25:29 +00:00
Roy Marples
08081f7ef4
Fix passno and IFS, #77 and #85 , thanks to Nahor
2008-05-25 22:30:31 +00:00
Roy Marples
be8f8d0ac0
Add the devdb init script.
2008-05-12 15:11:04 +00:00
Roy Marples
2d75eb7976
netmount may use openvpn.
2008-05-10 11:09:52 +00:00
Roy Marples
766ec96e3d
Add ifdown_eth0=NO so that the interface stays up for WakeOnLan, Gentoo #220875
2008-05-09 10:29:06 +00:00
Roy Marples
c8248d05a0
Ensure that make dep ordering is correct for install.
2008-05-06 19:52:30 +00:00