Re: [arch-general] [PATCH 48/48] Trivial bashification of network

2010-06-30 Thread Alexander Duscheleit
Thomas, while you're working on rc.d/network, could you please have another look @ FS#16625? It's been sitting stale for quite a while. It would *really* speed up networking for us bridge users, and bridging is becoming more and more common with all the virtualization around.

Re: [arch-general] [PATCH 35/48] find has a builtin delete action. Use it instead of exec'ing rm.

2010-06-30 Thread Thomas Bächler
Am 01.07.2010 00:40, schrieb Victor Lowther: >> I have no problem having GNU-specific features in there, as we can rely >> on GNU find (or GNU whatever) being present. The only exception is >> initramfs - however, no shell script is used in both the system and >> initramfs > > That is one reason I

Re: [arch-general] [PATCH 35/48] find has a builtin delete action. Use it instead of exec'ing rm.

2010-06-30 Thread Daenyth Blank
On Wed, Jun 30, 2010 at 18:32, Thomas Bächler wrote: > Am 30.06.2010 23:58, schrieb Daenyth Blank: >> I don't think this is portable though. >> > > Portability is not an issue. The beauty about this is that we can simply > assume we have GNU tools and we do use Linux ... because that is what > Arc

Re: [arch-general] [PATCH 35/48] find has a builtin delete action. Use it instead of exec'ing rm.

2010-06-30 Thread Victor Lowther
On Wed, Jun 30, 2010 at 5:32 PM, Thomas Bächler wrote: > Am 30.06.2010 23:58, schrieb Daenyth Blank: >> On Wed, Jun 30, 2010 at 17:47, Victor Lowther >> wrote: >>> --- >>>  rc.sysinit |    2 +- >>>  1 files changed, 1 insertions(+), 1 deletions(-) >>> >>> diff --git a/rc.sysinit b/rc.sysinit >>>

Re: [arch-general] [PATCH 35/48] find has a builtin delete action. Use it instead of exec'ing rm.

2010-06-30 Thread Thomas Bächler
Am 30.06.2010 23:58, schrieb Daenyth Blank: > On Wed, Jun 30, 2010 at 17:47, Victor Lowther > wrote: >> --- >> rc.sysinit |2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/rc.sysinit b/rc.sysinit >> index 319ea60..037a9f2 100755 >> --- a/rc.sysinit >> +++ b/rc.sys

Re: [arch-general] [PATCH 04/48] Use [[ ]] instead of [ ] for conditional checking when running in bash.

2010-06-30 Thread Victor Lowther
On Thu, 2010-07-01 at 00:24 +0200, bardo wrote: > 2010/7/1 Daenyth Blank : > > On Wed, Jun 30, 2010 at 17:56, Thomas Bächler wrote: > >> Am 30.06.2010 23:47, schrieb Victor Lowther: > >>> It is worth 10 - 30% speedup whenever you want to compare something. > >> > >> Where do you get this from? I a

Re: [arch-general] [PATCH 04/48] Use [[ ]] instead of [ ] for conditional checking when running in bash.

2010-06-30 Thread Thomas Bächler
Am 01.07.2010 00:22, schrieb Victor Lowther: > On Wed, 2010-06-30 at 23:56 +0200, Thomas Bächler wrote: >> Am 30.06.2010 23:47, schrieb Victor Lowther: >>> It is worth 10 - 30% speedup whenever you want to compare something. >> >> Where do you get this from? I always used [ ], and I found it >> suf

Re: [arch-general] [PATCH 32/48] Rewrite /etc/crypttab processing.

2010-06-30 Thread Victor Lowther
On Thu, 2010-07-01 at 00:16 +0200, Thomas Bächler wrote: > Am 30.06.2010 23:47, schrieb Victor Lowther: > > Split out reading /etc/crypttab and procssing the individual lines into > > their own helper functions, and bashify the resulting shorter code. > > > > Processing this file is still ugly, th

Re: [arch-general] [PATCH 01/48] Bashification of initscripts

2010-06-30 Thread Thomas Bächler
Am 01.07.2010 00:07, schrieb Victor Lowther: > On Wed, 2010-06-30 at 23:55 +0200, Thomas Bächler wrote: >> Am 30.06.2010 23:47, schrieb Victor Lowther: >>> Despite efforts to make the initscripts POSIX, we use bash 4.0 features. >>> >>> Bashifying this framework should result in about a 30% speedup

Re: [arch-general] [PATCH 30/48] bashify bringing up the loopback adaptor.

2010-06-30 Thread Victor Lowther
On Thu, 2010-07-01 at 00:13 +0200, Thomas Bächler wrote: > Am 30.06.2010 23:47, schrieb Victor Lowther: > > --- > > rc.sysinit |9 - > > 1 files changed, 4 insertions(+), 5 deletions(-) > > > > diff --git a/rc.sysinit b/rc.sysinit > > index 1d16224..31636e5 100755 > > --- a/rc.sysinit

Re: [arch-general] [PATCH 08/48] Slightly simplify hook-running infrastructure.

2010-06-30 Thread Victor Lowther
On Thu, 2010-07-01 at 00:00 +0200, Thomas Bächler wrote: > Am 30.06.2010 23:47, schrieb Victor Lowther: > > Go ahead and declare add_hook and run_hook as readonly functions > > to prevent hooks from overwriting them. Too bad bash does not have > > lexically scoped variables -- if it does, we could

Re: [arch-general] [PATCH 04/48] Use [[ ]] instead of [ ] for conditional checking when running in bash.

2010-06-30 Thread bardo
2010/7/1 Daenyth Blank : > On Wed, Jun 30, 2010 at 17:56, Thomas Bächler wrote: >> Am 30.06.2010 23:47, schrieb Victor Lowther: >>> It is worth 10 - 30% speedup whenever you want to compare something. >> >> Where do you get this from? I always used [ ], and I found it >> sufficient. Why is [[ ]] f

Re: [arch-general] [PATCH 35/48] find has a builtin delete action. Use it instead of exec'ing rm.

2010-06-30 Thread Victor Lowther
On Wed, 2010-06-30 at 17:58 -0400, Daenyth Blank wrote: > On Wed, Jun 30, 2010 at 17:47, Victor Lowther > wrote: > > --- > > rc.sysinit |2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/rc.sysinit b/rc.sysinit > > index 319ea60..037a9f2 100755 > > --- a/rc.sysi

Re: [arch-general] [PATCH 05/48] a little creative parameter expansion simplifies stat_die()

2010-06-30 Thread Victor Lowther
On Wed, 2010-06-30 at 23:57 +0200, Thomas Bächler wrote: > Nice patch, but ... > > > -if [ -t 1 ]; then > > +if [[ -t 1 ]]; then > > SAVE_POSITION="\033[s" > > RESTORE_POSITION="\033[u" > > DEL_TEXT="\033[$(($STAT_COL+4))G" > > @@ -116,10 +116,8 @@ stat_fail() { > > Hmm, this definite

Re: [arch-general] [PATCH 04/48] Use [[ ]] instead of [ ] for conditional checking when running in bash.

2010-06-30 Thread Victor Lowther
On Wed, 2010-06-30 at 23:56 +0200, Thomas Bächler wrote: > Am 30.06.2010 23:47, schrieb Victor Lowther: > > It is worth 10 - 30% speedup whenever you want to compare something. > > Where do you get this from? I always used [ ], and I found it > sufficient. Why is [[ ]] faster? [[ ]] is faster bec

Re: [arch-general] [PATCH 32/48] Rewrite /etc/crypttab processing.

2010-06-30 Thread Thomas Bächler
Am 30.06.2010 23:47, schrieb Victor Lowther: > Split out reading /etc/crypttab and procssing the individual lines into > their own helper functions, and bashify the resulting shorter code. > > Processing this file is still ugly, though. :( I wanted to factor this out and deprecate crypttab for a

Re: [arch-general] [PATCH 30/48] bashify bringing up the loopback adaptor.

2010-06-30 Thread Thomas Bächler
Am 30.06.2010 23:47, schrieb Victor Lowther: > --- > rc.sysinit |9 - > 1 files changed, 4 insertions(+), 5 deletions(-) > > diff --git a/rc.sysinit b/rc.sysinit > index 1d16224..31636e5 100755 > --- a/rc.sysinit > +++ b/rc.sysinit > @@ -113,13 +113,12 @@ fi > run_hook sysinit_udevse

Re: [arch-general] [PATCH 01/48] Bashification of initscripts

2010-06-30 Thread Victor Lowther
On Wed, 2010-06-30 at 23:55 +0200, Thomas Bächler wrote: > Am 30.06.2010 23:47, schrieb Victor Lowther: > > Despite efforts to make the initscripts POSIX, we use bash 4.0 features. > > > > Bashifying this framework should result in about a 30% speedup, assuming no > > IO latency and that all progr

Re: [arch-general] [PATCH 14/48] Fix whitespace errors I introduced.

2010-06-30 Thread Thomas Bächler
If you introduced whitespace errors (or any errors), fix them in the commits that introduced them, don't do a separate commit fixing them. signature.asc Description: OpenPGP digital signature

Re: [arch-general] [PATCH 04/48] Use [[ ]] instead of [ ] for conditional checking when running in bash.

2010-06-30 Thread Daenyth Blank
On Wed, Jun 30, 2010 at 17:56, Thomas Bächler wrote: > Am 30.06.2010 23:47, schrieb Victor Lowther: >> It is worth 10 - 30% speedup whenever you want to compare something. > > Where do you get this from? I always used [ ], and I found it > sufficient. Why is [[ ]] faster? > >> -if [ "$USECOLOR" =

Re: [arch-general] [PATCH 08/48] Slightly simplify hook-running infrastructure.

2010-06-30 Thread Thomas Bächler
Am 30.06.2010 23:47, schrieb Victor Lowther: > Go ahead and declare add_hook and run_hook as readonly functions > to prevent hooks from overwriting them. Too bad bash does not have > lexically scoped variables -- if it does, we could do the same with > the hook_funcs associative array. Lots of hu

Re: [arch-general] [PATCH 35/48] find has a builtin delete action. Use it instead of exec'ing rm.

2010-06-30 Thread Daenyth Blank
On Wed, Jun 30, 2010 at 17:47, Victor Lowther wrote: > --- >  rc.sysinit |    2 +- >  1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/rc.sysinit b/rc.sysinit > index 319ea60..037a9f2 100755 > --- a/rc.sysinit > +++ b/rc.sysinit > @@ -277,7 +277,7 @@ stat_busy "Removing Leftover F

Re: [arch-general] [PATCH 05/48] a little creative parameter expansion simplifies stat_die()

2010-06-30 Thread Thomas Bächler
Nice patch, but ... > -if [ -t 1 ]; then > +if [[ -t 1 ]]; then > SAVE_POSITION="\033[s" > RESTORE_POSITION="\033[u" > DEL_TEXT="\033[$(($STAT_COL+4))G" > @@ -116,10 +116,8 @@ stat_fail() { Hmm, this definitely doesn't belong into this patch. > } > > stat_die() { > - re

Re: [arch-general] [PATCH 04/48] Use [[ ]] instead of [ ] for conditional checking when running in bash.

2010-06-30 Thread Thomas Bächler
Am 30.06.2010 23:47, schrieb Victor Lowther: > It is worth 10 - 30% speedup whenever you want to compare something. Where do you get this from? I always used [ ], and I found it sufficient. Why is [[ ]] faster? > -if [ "$USECOLOR" = "YES" -o "$USECOLOR" = "yes" ]; then > +if [[ $USECOLOR = YES ||

Re: [arch-general] [PATCH 01/48] Bashification of initscripts

2010-06-30 Thread Thomas Bächler
Am 30.06.2010 23:47, schrieb Victor Lowther: > Despite efforts to make the initscripts POSIX, we use bash 4.0 features. > > Bashifying this framework should result in about a 30% speedup, assuming no > IO latency and that all programs we call also take zero time. :) > --- > functions |2 +- >

[arch-general] [PATCH 19/48] Simplify daemon-killing loops in rc.single.

2010-06-30 Thread Victor Lowther
Parsing the output of ls is Bad, especially when globbing works just as well and does not get confused by odd characters in filenames. bash has arithemetic for loops. Use them instead of while loops for iterating over arrays. --- rc.single | 29 - 1 files changed, 12

[arch-general] [PATCH 41/48] Bashify netfs

2010-06-30 Thread Victor Lowther
--- netfs |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/netfs b/netfs index cdfdf98..d4a926f 100755 --- a/netfs +++ b/netfs @@ -12,8 +12,7 @@ case "$1" in /bin/mount -a -t nfs,nfs4,smbfs,codafs,ncpfs,cifs,shfs,glusterfs,fuse,fuseblk,fuse.glusterfs

[arch-general] [PATCH 21/48] Both rc.single and rc.shutdown use the same code to kill everything.

2010-06-30 Thread Victor Lowther
Move that shared code into functions. --- functions | 29 + rc.shutdown | 32 +--- rc.single | 27 +-- 3 files changed, 31 insertions(+), 57 deletions(-) diff --git a/functions b/functions index d8e8e54..bf6

[arch-general] [PATCH 11/48] Replace if statement with parameter expansion.

2010-06-30 Thread Victor Lowther
${foo:+-p ${foo}} expands to nothing if foo is not set, -p $foo if foo is set. --- functions |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/functions b/functions index 8aaee68..56c6a7b 100644 --- a/functions +++ b/functions @@ -262,11 +262,8 @@ set_consolefont() {

[arch-general] [PATCH 48/48] Trivial bashification of network

2010-06-30 Thread Victor Lowther
--- network | 70 +++--- 1 files changed, 31 insertions(+), 39 deletions(-) diff --git a/network b/network index 40f1a90..20ff9c7 100755 --- a/network +++ b/network @@ -9,17 +9,15 @@ done ifup() { -if [ "$1" = "" ]; then +if [[

[arch-general] [PATCH 32/48] Rewrite /etc/crypttab processing.

2010-06-30 Thread Victor Lowther
Split out reading /etc/crypttab and procssing the individual lines into their own helper functions, and bashify the resulting shorter code. Processing this file is still ugly, though. :( --- functions | 43 +-- rc.shutdown | 36 + rc.sysinit | 131 +

[arch-general] [PATCH 18/48] Bashify conditional checking in rc.single.

2010-06-30 Thread Victor Lowther
--- rc.single | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/rc.single b/rc.single index f986a2a..aa58b4c 100755 --- a/rc.single +++ b/rc.single @@ -8,10 +8,10 @@ run_hook single_start -if [ "$PREVLEVEL" != "N" ]; then +if [[ $PREVLEVEL != N ]]; then

[arch-general] [PATCH 30/48] bashify bringing up the loopback adaptor.

2010-06-30 Thread Victor Lowther
--- rc.sysinit |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index 1d16224..31636e5 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -113,13 +113,12 @@ fi run_hook sysinit_udevsettled # bring up the loopback interface -if [ -d /sys/class/ne

[arch-general] [PATCH 39/48] Flatten adding persistent rules.

2010-06-30 Thread Victor Lowther
--- rc.sysinit | 16 ++-- 1 files changed, 6 insertions(+), 10 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index c6ed35f..ac32fca 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -342,16 +342,12 @@ fi set_consolefont # Adding persistent network/cdrom generated rules -if [ -f "/

[arch-general] [PATCH 29/48] Bashify module loading in rc.sysinit.

2010-06-30 Thread Victor Lowther
--- rc.sysinit | 16 +++- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index f3e60b7..1d16224 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -92,16 +92,14 @@ if /bin/pidof -o %PPID /sbin/udevd >/dev/null; then fi # Load modules from the MODU

[arch-general] [PATCH 35/48] find has a builtin delete action. Use it instead of exec'ing rm.

2010-06-30 Thread Victor Lowther
--- rc.sysinit |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index 319ea60..037a9f2 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -277,7 +277,7 @@ stat_busy "Removing Leftover Files" /bin/rm -f /var/lock/* &>/dev/null /bin/rm -rf /tmp/* /tmp/.* &

[arch-general] [PATCH 46/48] Bashify adjtime.cron

2010-06-30 Thread Victor Lowther
--- adjtime.cron | 16 +++- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/adjtime.cron b/adjtime.cron index b1c8950..a876506 100755 --- a/adjtime.cron +++ b/adjtime.cron @@ -4,14 +4,12 @@ . /etc/rc.conf HWCLOCK_PARAMS="--adjust" -if [ "$HARDWARECLOCK" = "UTC" ];

[arch-general] [PATCH 44/48] Save error messages to /dev/tty9.

2010-06-30 Thread Victor Lowther
--- functions |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/functions b/functions index 9ec8b5e..f1dce8a 100644 --- a/functions +++ b/functions @@ -4,6 +4,10 @@ # width: +grep -q initdebug && { +exec 2>/dev/tty9 +} + STAT_COL=80 if [[ ! -t 1 ]]; then U

[arch-general] [PATCH 27/48] Start tightening up rc.sysinit.

2010-06-30 Thread Victor Lowther
--- rc.sysinit | 21 - 1 files changed, 8 insertions(+), 13 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index c62ae8d..29adeca 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -17,12 +17,9 @@ printsep run_hook sysinit_start # mount /proc, /sys and our RAM /dev -if ! /bi

[arch-general] [PATCH 22/48] Use parameter expansion instead of dirname.

2010-06-30 Thread Victor Lowther
--- rc.shutdown |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rc.shutdown b/rc.shutdown index ef9b16d..cc39030 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -23,7 +23,7 @@ kill_everything stat_busy "Saving Random Seed" RANDOM_SEED=/var/lib/misc/random-seed -[ -d $(d

[arch-general] [PATCH 45/48] Sleep instead of rebooting or shutting down when debugging initscripts

2010-06-30 Thread Victor Lowther
--- functions |2 +- rc.shutdown |3 +++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/functions b/functions index f1dce8a..2c80a59 100644 --- a/functions +++ b/functions @@ -4,7 +4,7 @@ # width: -grep -q initdebug && { +grep -q initdebug /proc/cmdline && { exe

[arch-general] [PATCH 26/48] Clean up whitespace errors.

2010-06-30 Thread Victor Lowther
--- rc.shutdown | 28 ++-- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/rc.shutdown b/rc.shutdown index 7d5ec26..e823ed2 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -42,7 +42,7 @@ if [[ $TIMEZONE && -e /usr/share/zoneinfo/$TIMEZONE ]]; then fi HW

[arch-general] [PATCH 23/48] Clean up entropy pool saving and system clock saving.

2010-06-30 Thread Victor Lowther
--- rc.shutdown | 22 +- 1 files changed, 9 insertions(+), 13 deletions(-) diff --git a/rc.shutdown b/rc.shutdown index cc39030..b2278b6 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -27,8 +27,8 @@ RANDOM_SEED=/var/lib/misc/random-seed : > $RANDOM_SEED /bin/chmod 0600 $RAN

[arch-general] [PATCH 16/48] Change the daemon running loop to use a case statement.

2010-06-30 Thread Victor Lowther
This is shorter and easier to read. --- rc.multi | 12 +--- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/rc.multi b/rc.multi index 46c18df..ec6fda6 100755 --- a/rc.multi +++ b/rc.multi @@ -13,13 +13,11 @@ run_hook multi_start # Start daemons for daemon in "${daemo..

[arch-general] [PATCH 28/48] Use bash-style conditionals when setting up the hardware clock.

2010-06-30 Thread Victor Lowther
Trying to stick with POSIX syntax only just slows things down. --- rc.sysinit | 27 +++ 1 files changed, 11 insertions(+), 16 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index 29adeca..f3e60b7 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -44,27 +44,22 @@ fi HWCLO

[arch-general] [PATCH 25/48] Bashify poweroff or reboot code in rc.shutdown.

2010-06-30 Thread Victor Lowther
--- rc.shutdown |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/rc.shutdown b/rc.shutdown index b7b7d45..7d5ec26 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -108,15 +108,14 @@ stat_done run_hook shutdown_poweroff # Power off or reboot -if [ "$RUNLEVEL" = "0" ];

[arch-general] [PATCH 24/48] Flatten LVM deactivation if block in rc.shutdown.

2010-06-30 Thread Victor Lowther
--- rc.shutdown | 52 +++- 1 files changed, 23 insertions(+), 29 deletions(-) diff --git a/rc.shutdown b/rc.shutdown index b2278b6..b7b7d45 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -65,7 +65,7 @@ stat_busy "Unmounting Filesystems" stat_done

[arch-general] [PATCH 33/48] Bashified fscking.

2010-06-30 Thread Victor Lowther
--- rc.sysinit | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index d54b9bb..91ee03a 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -181,7 +181,7 @@ fi status "Mounting Root Read-only" /bin/mount -n -o remount,ro / FORCEFSCK= -[ -f /forc

[arch-general] [PATCH 17/48] Quote daemon names.

2010-06-30 Thread Victor Lowther
Someday, someone may have a daemon name with a space in it. --- rc.multi |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rc.multi b/rc.multi index ec6fda6..660f649 100755 --- a/rc.multi +++ b/rc.multi @@ -15,8 +15,8 @@ run_hook multi_start for daemon in "${daemo...@]}"

[arch-general] [PATCH 34/48] Bashify clock and timezone handling in rc.sysinit

2010-06-30 Thread Victor Lowther
--- rc.sysinit |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index 91ee03a..319ea60 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -243,13 +243,13 @@ stat_done status "Activating Swap" /sbin/swapon -a stat_busy "Configuring System Clock" -if [

[arch-general] [PATCH 42/48] Load conf files in a loop instead of one at a time.

2010-06-30 Thread Victor Lowther
--- network | 11 +++ 1 files changed, 3 insertions(+), 8 deletions(-) diff --git a/network b/network index 977e81e..242acc3 100755 --- a/network +++ b/network @@ -3,14 +3,9 @@ . /etc/rc.conf . /etc/rc.d/functions -# wireless settings -[ -f /etc/conf.d/wireless ] && . /etc/conf.d/wi

[arch-general] [PATCH 43/48] Add a PKGBUILD for building initscripts-git for testing.

2010-06-30 Thread Victor Lowther
This builds straight out of a git checkout. --- PKGBUILD | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000..79b3403 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +pkgname=initscripts-git +pkgver=$(

[arch-general] [PATCH 31/48] Simplify test to see if we should assemble arrays at startup

2010-06-30 Thread Victor Lowther
--- rc.sysinit |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index 31636e5..404e11a 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -123,7 +123,7 @@ if [[ -d /sys/class/net/lo ]]; then fi # If necessary, find md devices and manually assemble RAID

[arch-general] [PATCH 40/48] Bashify waiting for the clock pid.

2010-06-30 Thread Victor Lowther
--- rc.sysinit |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index ac32fca..1ecfc3f 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -352,7 +352,7 @@ done /bin/dmesg >| /var/log/dmesg.log # final hwclock setting needs to be done at this point -if

[arch-general] [PATCH 38/48] Bashify locale setting.

2010-06-30 Thread Victor Lowther
--- rc.sysinit | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index 5842a57..c6ed35f 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -303,12 +303,12 @@ status "Updating Module Dependencies" /sbin/depmod -A : >| /etc/profile.d/locale.sh

[arch-general] [PATCH 36/48] Bashify setting the random seed.

2010-06-30 Thread Victor Lowther
--- rc.sysinit |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index 037a9f2..217dacf 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -265,7 +265,7 @@ fi stat_done RANDOM_SEED=/var/lib/misc/random-seed -if [ -f $RANDOM_SEED ]; then +if [[ -f $RANDO

[arch-general] [PATCH 37/48] Bashify hostname and nisdomainnname setting.

2010-06-30 Thread Victor Lowther
--- rc.sysinit | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rc.sysinit b/rc.sysinit index 217dacf..5842a57 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -287,14 +287,14 @@ stat_done #status "Updating Shared Library Links" /sbin/ldconfig -if [ "$HOSTNAME" !=

[arch-general] [PATCH 20/48] Shorten domainname and rc.local.shutdown conditional execution.

2010-06-30 Thread Victor Lowther
--- rc.shutdown |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/rc.shutdown b/rc.shutdown index 4eb29cc..002a45d 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -16,13 +16,9 @@ printhl "Initiating Shutdown..." echo " " # avoid NIS hanging syslog-ng on shutdown by

[arch-general] [PATCH 13/48] Make sourcing functions.d files a tiny bit shorter and faster.

2010-06-30 Thread Victor Lowther
--- functions |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/functions b/functions index 9730150..9c89ea1 100644 --- a/functions +++ b/functions @@ -278,9 +278,7 @@ EOF # Source additional functions at the end to allow overrides for f in /etc/rc.d/functions.d/*; do

[arch-general] [PATCH 15/48] Bashify conditional checking in rc.multi

2010-06-30 Thread Victor Lowther
--- rc.multi |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rc.multi b/rc.multi index a7ea703..46c18df 100755 --- a/rc.multi +++ b/rc.multi @@ -9,12 +9,12 @@ run_hook multi_start # Load sysctl variables if sysctl.conf is present -[ -r /etc/sysctl.conf ] && /sbi

[arch-general] [PATCH 14/48] Fix whitespace errors I introduced.

2010-06-30 Thread Victor Lowther
--- functions |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/functions b/functions index 9c89ea1..d8e8e54 100644 --- a/functions +++ b/functions @@ -170,7 +170,7 @@ start_daemon() { ck_depends() { for daemon in "$@"; do - ck_daemon "$daemon" && start_da

[arch-general] [PATCH 08/48] Slightly simplify hook-running infrastructure.

2010-06-30 Thread Victor Lowther
Go ahead and declare add_hook and run_hook as readonly functions to prevent hooks from overwriting them. Too bad bash does not have lexically scoped variables -- if it does, we could do the same with the hook_funcs associative array. --- functions | 49 ++

[arch-general] [PATCH 12/48] Replace slightly too long echo staement with a here document.

2010-06-30 Thread Victor Lowther
This adds a line, but making things more readable is worth it. --- functions | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/functions b/functions index 56c6a7b..9730150 100644 --- a/functions +++ b/functions @@ -265,12 +265,13 @@ set_consolefont() { /usr

[arch-general] [PATCH 09/48] If $CONSOLEFONT is not declared, then just return out of set_consolefont.

2010-06-30 Thread Victor Lowther
We do this early so that the entire body of the function is not in an if block. --- functions | 37 ++--- 1 files changed, 18 insertions(+), 19 deletions(-) diff --git a/functions b/functions index d9f55fa..f954737 100644 --- a/functions +++ b/functions @@ -257,2

[arch-general] [PATCH 10/48] Replace trivial use of grep with bash regex conditional.

2010-06-30 Thread Victor Lowther
Bash has regex support, and it allows us to replace most trivial uses of sed, grep, and awk. The fewer processes we create, the faster we go, and every little bit helps. I also think it is more readable to use a bash regex for the trivial stuff. --- functions |4 +--- 1 files changed, 1 inse

[arch-general] [PATCH 05/48] a little creative parameter expansion simplifies stat_die()

2010-06-30 Thread Victor Lowther
--- functions |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/functions b/functions index 9b348b7..0acdbbf 100644 --- a/functions +++ b/functions @@ -57,7 +57,7 @@ if [[ $USECOLOR = YES || $USECOLOR = yes ]]; then C_CLEAR="\033[1;0m" fi -if [ -t 1 ]; then +

[arch-general] [PATCH 07/48] Simplify in_array.

2010-06-30 Thread Victor Lowther
All that extra checking for the first character being @ is not needed, simple parameter expansion will trim it off if it is there. --- functions | 18 +++--- 1 files changed, 7 insertions(+), 11 deletions(-) diff --git a/functions b/functions index 9d0aec3..8bbdfc6 100644 --- a/func

[arch-general] [PATCH 06/48] Clean up status() function.

2010-06-30 Thread Victor Lowther
Calling your args with $* will do nasty things if any of your args has a space in it. "$@" will always do The Right Thing. Just test the command directly, don't run it and then grab its exit value. --- functions |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/func

[arch-general] [PATCH 01/48] Bashification of initscripts

2010-06-30 Thread Victor Lowther
Despite efforts to make the initscripts POSIX, we use bash 4.0 features. Bashifying this framework should result in about a 30% speedup, assuming no IO latency and that all programs we call also take zero time. :) --- functions |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --g

[arch-general] [PATCH 04/48] Use [[ ]] instead of [ ] for conditional checking when running in bash.

2010-06-30 Thread Victor Lowther
It is worth 10 - 30% speedup whenever you want to compare something. --- functions |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/functions b/functions index 6df8c5e..9b348b7 100644 --- a/functions +++ b/functions @@ -40,7 +40,7 @@ unset TERM_COLORS unset TZ # colors

[arch-general] [PATCH 02/48] Tighten up the console size finding code a bit.

2010-06-30 Thread Victor Lowther
--- functions | 30 +- 1 files changed, 13 insertions(+), 17 deletions(-) diff --git a/functions b/functions index 023de35..a9acf6f 100644 --- a/functions +++ b/functions @@ -5,26 +5,21 @@ # width: STAT_COL=80 -if [ ! -t 1 ]; then - USECOLOR="" - -# stty will fa

[arch-general] [PATCH 03/48] Simplify the code that clears USECOLOR.

2010-06-30 Thread Victor Lowther
--- functions | 21 +++-- 1 files changed, 7 insertions(+), 14 deletions(-) diff --git a/functions b/functions index a9acf6f..6df8c5e 100644 --- a/functions +++ b/functions @@ -13,7 +13,7 @@ elif [[ -t 0 ]]; then # stty gives "rows cols"; strip the rows number, we just want

Re: [arch-general] Bashification of initscripts for moderate speedup

2010-06-30 Thread Loui Chang
On Wed 30 Jun 2010 18:48 +0200, Philipp Überbacher wrote: > Excerpts from Aaron Griffin's message of 2010-06-30 17:55:40 +0200: > > On Wed, Jun 30, 2010 at 10:00 AM, Caleb Cushing > > wrote: > > > On Tue, Jun 29, 2010 at 1:57 PM, Aaron Griffin > > > wrote: > > >> I have no idea where the number

Re: [arch-general] help unravelling dmesg

2010-06-30 Thread Thomas Bächler
Am 30.06.2010 20:52, schrieb aerospace1...@hotmail.com: > I was wondering if someone might be able to explain this to me. I was > reading the output from dmesg, and found the following entry. > > CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use > nf_conntrack.acct=1 kernel pa

Re: [arch-general] Bashification of initscripts for moderate speedup

2010-06-30 Thread aerospace1028
>Message: 9 >Date: Wed, 30 Jun 2010 18:48:37 +0200 >From: Philipp ?berbacher >Subject: Re: [arch-general] Bashification of initscripts for moderate >speedup >To: arch-general >Message-ID: <1277916464-sup-8...@eris> >Content-Type: text/plain; charset=UTF-8 > >Excerpts from Aaron Griffin's message

[arch-general] help unravelling dmesg

2010-06-30 Thread aerospace1028
I was wondering if someone might be able to explain this to me. I was reading the output from dmesg, and found the following entry. CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or sysctl net.netfilte

Re: [arch-general] perl-xml-parser vs. perlxml: dependency probs

2010-06-30 Thread Lou Garou
Andrea Scarpino wrote: > No problem, I was waiting for a fix by Francois, but this issue was > becoming confusing. > All should be fixed now. > Yep, you're right. perl-xml-parser-2.36.6 just entered [extra]. I installed it and everything is hunky-dorey again. Thanks!

Re: [arch-general] Bashification of initscripts for moderate speedup

2010-06-30 Thread Victor Lowther
On Jun 30, 2010, at 12:40 PM, Thomas Bächler wrote: Am 28.06.2010 05:10, schrieb Victor Lowther: I have spent some time over the last month or so rewriting the Arch initscripts in idiomatic bash -- since they rely on bash-specific features, trying to keep them fairly POSIX is rather a waste

Re: [arch-general] perl-xml-parser vs. perlxml: dependency probs

2010-06-30 Thread Andrea Scarpino
On Wednesday 30 June 2010 19:49:53 Lou Garou wrote: > Thank you, Andrea. I knew somebody was on the case. Sorry > if I sounded impatient, especially for something that > wasn't a show-stopper. I just get all anxious if I can > run pacman -Syu (which I do far too often). No problem, I was waiting fo

Re: [arch-general] perl-xml-parser vs. perlxml: dependency probs

2010-06-30 Thread Lou Garou
Andrea Scarpino wrote: > I am fixing this...wait for -6 in [extra] and -7 in [testing] > Thank you, Andrea. I knew somebody was on the case. Sorry if I sounded impatient, especially for something that wasn't a show-stopper. I just get all anxious if I can run pacman -Syu (which I do far to

Re: [arch-general] perl-xml-parser vs. perlxml: dependency probs

2010-06-30 Thread Andrea Scarpino
On Wednesday 30 June 2010 19:40:29 Lou Garou wrote: > Apparently the perl-xml-parser-2.36.5 (now in > [testing]) will fix this. perl-xml-parser-2.36-5 is perl-xml-parser-2.36-4 built using perl 5.12. Does not fix provides() array. I am fixing this...wait for -6 in [extra] and -7 in [testing] --

Re: [arch-general] perl-xml-parser vs. perlxml: dependency probs

2010-06-30 Thread Lou Garou
Colby W. wrote: > >> You're not the only one. >> >> http://bugs.archlinux.org/task/20029 >> Apparently the perl-xml-parser-2.36.5 (now in [testing]) will fix this. Should I force installation of the testing package, though? When I try, I'm getting "... exists in filesystem" warnings. I ge

Re: [arch-general] Bashification of initscripts for moderate speedup

2010-06-30 Thread Thomas Bächler
Am 28.06.2010 05:10, schrieb Victor Lowther: > I have spent some time over the last month or so rewriting the Arch > initscripts in idiomatic bash -- since they rely on bash-specific > features, trying to keep them fairly POSIX is rather a waste of time and > a net performance loss -- using bash-st

[arch-general] [signoff] cryptsetup 1.1.2-2

2010-06-30 Thread Thomas Bächler
This version fixes the location of the pkgconfig file (shame on me to overlook that before). Please sign off. signature.asc Description: OpenPGP digital signature

Re: [arch-general] perl-xml-parser vs. perlxml: dependency probs

2010-06-30 Thread Lou Garou
Colby W. wrote: > You're not the only one. > > http://bugs.archlinux.org/task/20029 > wrote: >> Is anybody else getting dependency errors involving the >> attempted replacement of perlxml by perl-xml-parser? >> >> I've got libxml-perl and perl-sml-dom both requiring >> perlxml, thus stopping

Re: [arch-general] perl-xml-parser vs. perlxml: dependency probs

2010-06-30 Thread Colby W.
You're not the only one. http://bugs.archlinux.org/task/20029 On Wed, Jun 30, 2010 at 09:49, Lou Garou wrote: > Is anybody else getting dependency errors involving the > attempted replacement of perlxml by perl-xml-parser? > > I've got libxml-perl and perl-sml-dom both requiring > perlxml, thus

[arch-general] perl-xml-parser vs. perlxml: dependency probs

2010-06-30 Thread Lou Garou
Is anybody else getting dependency errors involving the attempted replacement of perlxml by perl-xml-parser? I've got libxml-perl and perl-sml-dom both requiring perlxml, thus stopping the replacement. Should I just sit tight and let the backroom boyz fix it?

Re: [arch-general] Bashification of initscripts for moderate speedup

2010-06-30 Thread Philipp Überbacher
Excerpts from Aaron Griffin's message of 2010-06-30 17:55:40 +0200: > On Wed, Jun 30, 2010 at 10:00 AM, Caleb Cushing > wrote: > > On Tue, Jun 29, 2010 at 1:57 PM, Aaron Griffin > > wrote: > >> I have no idea where the number came from, but both 80 and 132 are > >> standard column widths used f

Re: [arch-general] Bashification of initscripts for moderate speedup

2010-06-30 Thread Aaron Griffin
On Wed, Jun 30, 2010 at 10:00 AM, Caleb Cushing wrote: > On Tue, Jun 29, 2010 at 1:57 PM, Aaron Griffin > wrote: >> I have no idea where the number came from, but both 80 and 132 are >> standard column widths used for normal and wide terminals. > > should be 78 columns I do believe that's the st

Re: [arch-general] Bashification of initscripts for moderate speedup

2010-06-30 Thread Caleb Cushing
On Tue, Jun 29, 2010 at 1:57 PM, Aaron Griffin wrote: > I have no idea where the number came from, but both 80 and 132 are > standard column widths used for normal and wide terminals. should be 78 columns I do believe that's the standard for kernel/git it allows for email comments more easily app

[arch-general] html5 and flash was x86_64 flash debacle

2010-06-30 Thread Caleb Cushing
sorry in order to speed up gmail I cleared all my mailing list archives so I can't reply to that thread now. http://apiblog.youtube.com/2010/06/flash-and-html5-tag.html youtube talks about what's missing from the tag. I just thought maybe some people on here would be interested. I don't actually

Re: [arch-general] Xorg 1.8, Nvidia 6200 Videoseven monitor

2010-06-30 Thread fons
On Wed, Jun 30, 2010 at 10:55:00AM +0200, Thomas Bächler wrote: > Also, if you really want to use a free driver, don't use nv, it sucks - > use nouveau instead. Well my experience is quite different. I had to revert to nv on some audio workstations because nouveau seems to block interrupts or ot

Re: [arch-general] Inclusion of wvdial in the ISO

2010-06-30 Thread Nilesh Govindarajan
What's the position ? Its included or not ? -- Regards, Nilesh Govindarajan Facebook: http://www.facebook.com/nilesh.gr Twitter: http://twitter.com/nileshgr Website: http://www.itech7.com Cheap and Reliable VPS Hosting: http://j.mp/arHk5e

Re: [arch-general] Xorg 1.8, Nvidia 6200 Videoseven monitor

2010-06-30 Thread Peter Cannon
On 30/06/10 09:55, Thomas Bächler wrote: Am 30.06.2010 10:45, schrieb Peter Cannon: On 30/06/10 09:43, Thomas Bächler wrote: Am 30.06.2010 10:38, schrieb Peter Cannon: I have upgraded to Xorg release 1.8 to do so I had to remove the Nvidia-173xx driver and installed xf86-video-nv. do you u

Re: [arch-general] Xorg 1.8, Nvidia 6200 Videoseven monitor

2010-06-30 Thread Thomas Bächler
Am 30.06.2010 10:45, schrieb Peter Cannon: > On 30/06/10 09:43, Thomas Bächler wrote: >> Am 30.06.2010 10:38, schrieb Peter Cannon: >>> I have upgraded to Xorg release 1.8 to do so I had to remove the >>> Nvidia-173xx driver and installed xf86-video-nv. >> > > do you use nvidia 173xx? The 6200 is

Re: [arch-general] Xorg 1.8, Nvidia 6200 Videoseven monitor

2010-06-30 Thread Peter Cannon
On 30/06/10 09:43, Thomas Bächler wrote: Am 30.06.2010 10:38, schrieb Peter Cannon: I have upgraded to Xorg release 1.8 to do so I had to remove the Nvidia-173xx driver and installed xf86-video-nv. do you use nvidia 173xx? The 6200 is supported by the nvidia driver. I'm not? If you read it

Re: [arch-general] Xorg 1.8, Nvidia 6200 Videoseven monitor

2010-06-30 Thread Thomas Bächler
Am 30.06.2010 10:38, schrieb Peter Cannon: > I have upgraded to Xorg release 1.8 to do so I had to remove the > Nvidia-173xx driver and installed xf86-video-nv. Why do you use nvidia 173xx? The 6200 is supported by the nvidia driver. signature.asc Description: OpenPGP digital signature

[arch-general] Xorg 1.8, Nvidia 6200 Videoseven monitor

2010-06-30 Thread Peter Cannon
Hi All I have a Videoseven 19" monitor L19FM and an Nvidia 6200 graphics card the monitor's capabilities are never recognised properly by any Linux distribution so usually I use the Nvidia-settings tool. I have upgraded to Xorg release 1.8 to do so I had to remove the Nvidia-173xx driver and

[arch-general] Xorg 1.8, Nvidia 6200 Videoseven monitor

2010-06-30 Thread Peter Cannon
Hi All I have a Videoseven 19" monitor L19FM and an Nvidia 6200 graphics card the monitor's capabilities are never recognised properly by any Linux distribution so usually I use the Nvidia-settings tool. I have upgraded to Xorg release 1.8 to do so I had to remove the Nvidia-173xx driver and