wok-next diff runcom/receipt @ rev 12919
evas: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 29 21:54:10 2012 +0200 (2012-05-29) |
parents | 289a2f495cd6 |
children | 8387b6915400 |
line diff
1.1 --- a/runcom/receipt Sat Feb 18 09:00:05 2012 +0100 1.2 +++ b/runcom/receipt Tue May 29 21:54:10 2012 +0200 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.