wok-6.x diff slitaz-loram/receipt @ rev 377
Slitaz-loram*: fix /etc/init.d/rcS perms
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 08 16:39:00 2008 +0100 (2008-03-08) |
parents | 6909e27a7f91 |
children | c9546c686c60 |
line diff
1.1 --- a/slitaz-loram/receipt Sat Mar 08 13:55:02 2008 +0000 1.2 +++ b/slitaz-loram/receipt Sat Mar 08 16:39:00 2008 +0100 1.3 @@ -14,7 +14,7 @@ 1.4 cp stuff/loram.* $fs/etc/tazlito 1.5 } 1.6 1.7 -get_patch() 1.8 +set_patch() 1.9 { 1.10 local tag 1.11 local line 1.12 @@ -31,7 +31,7 @@ 1.13 line="-$i,2 +$i,15" 1.14 i="+" 1.15 fi 1.16 - cat <<EOF 1.17 + patch -p0 <<EOF 1.18 --- $1/etc/init.d/rcS 1.19 +++ $1/etc/init.d/rcS 1.20 @@ $line @@ 1.21 @@ -66,7 +66,7 @@ 1.22 { 1.23 local root 1.24 root=$1 1.25 - get_patch "$root" | patch -p0 1.26 + set_patch "$root" 1.27 if [ ! -x /bin/funionfs ]; then 1.28 cat <<EOF 1.29 You will build a live CD with /usr mounted read-only. 1.30 @@ -79,5 +79,5 @@ 1.31 # Pre remove commands for Tazpkg. 1.32 pre_remove() 1.33 { 1.34 - get_patch '' -R | patch -p0 1.35 + set_patch '' -R 1.36 }