wok-6.x diff runcom/receipt @ rev 11774
libxcb-dev: Fix DEPENDS (http://bugs.slitaz.org/issue76)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Feb 23 23:27:47 2012 +0100 (2012-02-23) |
parents | 289a2f495cd6 |
children | 8387b6915400 |
line diff
1.1 --- a/runcom/receipt Sat Feb 18 09:00:05 2012 +0100 1.2 +++ b/runcom/receipt Thu Feb 23 23:27:47 2012 +0100 1.3 @@ -37,16 +37,15 @@ 1.4 proc="/proc/sys/fs/binfmt_misc" 1.5 bin=":BOOTBIN:E::bin::/usr/bin/runcom:" 1.6 com=":DOSCOM:E::com::/usr/bin/runcom:" 1.7 - rc="$1/etc/init.d/local.sh" 1.8 - grep -q "$com" $rc || cat >> $rc <<EOT 1.9 + cat > /tmp/runcom$$ <<EOT 1.10 [ ! -e $proc/register ] && modprobe $fmt && mount -t $fmt $fmt $proc 1.11 echo "$bin" >$proc/register 1.12 echo "$com" >$proc/register 1.13 EOT 1.14 - [ -n "$1" ] && return 1.15 - [ ! -e $proc/register ] && modprobe $fmt && mount -t $fmt $fmt $proc 1.16 - echo "$bin" >$proc/register 1.17 - echo "$com" >$proc/register 1.18 + rc="$1/etc/init.d/local.sh" 1.19 + grep -q "$com" $rc || cat /tmp/runcom$$ >> $rc 1.20 + [ -n "$1" ] || . /tmp/runcom$$ 1.21 + rm -f /tmp/runcom$$ 1.22 } 1.23 1.24 # Pre remove command for Tazpkg.