aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2011-06-27Use _get_comp_words_by_ref in bash completionSebastien Luttringer1
Thanks Dave Reisner for suggestion Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-06-25hwclock: show statusTom Gundersen1
Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-25hwclock: use correct timezoneTom Gundersen2
To avoid setting the kernel timezone with an out-of-date /etc/localtime, we pass TZ directly to hwclock. Also document how TIMEZONE and HARDWARECLOCK are optional in rc.conf Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-25trivial: silence errorsTom Gundersen1
This is a cleanup of a commit 171da3d. We get errors because /tmp/. and /tmp/.. cannot be deleted on boot. Send them to /dev/null. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-24Simplify /etc/profile.d/locale.sh creationKurt J. Bosch1
2011-06-24Get rid of simple if-constucts by using '&&'Kurt J. Bosch3
2011-06-24rc.multi/rc.single: Merge duplicated bootlogd stop code into a functionKurt J. Bosch3
2011-06-24rc.sysinit/rc.single: Merge UDev stuff into a functionKurt J. Bosch3
rc.single changes (when coming from multi-user): * avoid settling UDev quietly as in rc.sysinit * modules defined in rc.conf are loaded if missing * minilogd is started before udevd as in rc.sysinit rc.sysinit behaviour is unchanged
2011-06-24Simplify in_array functionKurt J. Bosch1
2011-06-24Some more cosmeticsKurt J. Bosch3
2011-06-24Simplify random seed file creationKurt J. Bosch1
2011-06-24Fix bootlogd not stopped when booting into runlevel '1'Kurt J. Bosch1
2011-06-24rc.single: Avoid rc.multi syslog start error - use minilogd as in rc.sysinitKurt J. Bosch1
2011-06-24Simplify unmounting filesystemsKurt J. Bosch1
This also keeps all tmpfs allways. Some might be in still in use because of a running splash daemon etc.
2011-06-24Simplify rc.single udevadm stuff as in rc.sysinitKurt J. Bosch1
2011-06-24Some cosmeticsKurt J. Bosch3
2011-06-24Simplify API filesystems mountingKurt J. Bosch1
2011-06-24Simplify keyboard map loading by using loadkeys autodetectionKurt J. Bosch1
2011-06-24Simplify creating files by using /bin/installKurt J. Bosch1
2011-06-24Simplify timezone copyingKurt J. Bosch2
Error/stat_fail when $TIMEZONE is invalid instead of skipping silently.
2011-06-24Fix hwclock commentsKurt J. Bosch2
2011-06-23functions: warn if daemons are started recursivelyTom Gundersen1
In particular, recomend against using ck_depends. Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-23added get_pid() and ck_pidfile() (FS#18654)Andrwe Lord Weber1
Implemented suggestions of Dave. get_pid: Arguments: programname Returns: PID of program ck_pidfile: Arguments: PID-file programname Returns: 0 - PID in PID-file is of program 1 - PID in PID-file is not of program Signed-off-by: Andrwe Lord Weber <archlinux@andrwe.org> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-22Move mount -a into functions to allow custom override (fsck on loop)Kurt J. Bosch2
2011-06-22Allow custom fsck on shutdown via hook (FS#18736)Kurt J. Bosch3
2011-06-22Simplify fsck functionsKurt J. Bosch1
2011-06-22Move fsck stuff into functions to allow custom overrides (FS#18736)Kurt J. Bosch2
2011-06-20Merge remote-tracking branch 'falconindy/working'Tom Gundersen2
2011-06-20network: always warn about deprecation for old funcsDave Reisner1
There's no way the ifup|ifdown|rtup|rtdown etc functions will ever hit the new iproute2 based logic. Therefore, always remind the user that this functionality is deprecated. This prevents misusage of the functionality as seen in FS#24714. Signed-off-by: Dave Reisner <d@falconindy.com>
2011-06-20status: adjust number of columns after loading modulesTom Gundersen2
In case loading modules enables a frambuffer with higher resolution than the standard 80 columns, we recalculate the number of columns after all modules have been loaded. Original-patch-by: Aaron Griffin <aaronmgriffin@gmail.com> Original-patch-by: Søren Poulsen <nikorpoulsen@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-19rc.shutdown: continuation of fe48fab2c2c35cDave Reisner1
Signed-off-by: Dave Reisner <d@falconindy.com>
2011-06-19Adding hook sysinit_postmountjofko2
In some cases is good to know when rc.sysinit is going to use /usr See FS#24712 Signed-off-by: jofko <joffko@gmail.com> [tomegun: added comment to 'functions' and changed name of hook] Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-19network: don't enforce check for netmask or gatewayDave Reisner2
4cad51425325 removed the necessity for defining gateway, but we still continued to check for it. Remove this check, as well as the check for netmask. When not supplied, netmask will default to /24. Signed-off-by: Dave Reisner <d@falconindy.com>
2011-06-19rc.sysinit: avoid use of regex match for USE* varsDave Reisner1
Although silly, this would positively match something such as USRBTRFS=deadeyes Instead, enumerate the match as a simple glob. Signed-off-by: Dave Reisner <d@falconindy.com>
2011-06-18Merge remote-tracking branch 'seblu/master'Tom Gundersen4
2011-06-18network: support gateway-less network setupDave Reisner1
This also discards the explicit deletion of the route in network_down, as bringing down the interface will take care of this for us. Addresses FS#24690 Thanks-to: Matthias Dienstbier <matthias_dienstbier@yahoo.de> Signed-off-by: Dave Reisner <d@falconindy.com>
2011-06-18Ensure rc.d scripts are run as rootSebastien Luttringer2
By default all script should be run as root. If NEED_ROOT=0 is set before loading /etc/rc.d/functions in a rc.d scripts, this will not apply. This allow script with only some part which require root level to call need_root() function at beginning of those parts. Close FS#24095 Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-06-18rc.d: Update bash and zsh completion scriptsSebastien Luttringer2
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-06-18rc.d: Add started/stopped option to listSebastien Luttringer1
This patch allow rc.d list started and rc.d list stopped which list respectively only started and stopped daemons Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-06-18rc.d: Update usageSebastien Luttringer1
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
2011-06-14rc.sysinit: honor blacklist, not load_modulesDave Reisner1
This is some unfinished business from our removal of load-modules.sh. We call modprobe with -ab for the contents of the MODULES array, which should no longer contain ! prefixed module names. --quiet is explicitly ommitted, as users should be aware of any errors that might occur here. Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-10Merge remote-tracking branch 'djgera/djgera'Tom Gundersen2
2011-06-09[initscripts] network: Add missing broadcast addressGerardo Exequiel Pozzi2
Without this broadcast address is not set. broadcast= parameter can be empty. In this case the broadcast address is derived by setting all of the interface host bits to one (+). Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2011-06-10hostname: echo to kernel directlyTom Gundersen1
This allows us to ignore the hostname utility, whose home is currently in flux. Suggested-by: Thomas Bächler <thomas@archlinux.org> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-08Merge branch 'snowman'Tom Gundersen5
Conflicts: rc.multi rc.single Trivial conflict, and fixed a bug introduced when I imported the patches in the first place (oops). Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-08Add logrotate config file to rotate /var/log/bootEric Bélanger2
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-08Removed superfluous dollar signEric Bélanger1
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-08Clean up ANSI codes from /var/log/bootEric Bélanger2
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-06Merge remote-tracking branch 'djgera/djgera'Tom Gundersen3
Conflicts: rc.single rc.sysinit Mostly trivial conflicts with Dave's path purging Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-06-06udev: remove rule generationTom Gundersen1
This has been removed from the udev package, so this code would never be executed. Can finally be removed. Signed-off-by: Tom Gundersen <teg@jklm.no>