wok 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 | 77702793c15c |
children | 61cf576edb7b |
files | slitaz-loram-cdrom/receipt slitaz-loram/receipt |
line diff
1.1 --- a/slitaz-loram-cdrom/receipt Sat Mar 08 15:27:14 2008 +0100 1.2 +++ b/slitaz-loram-cdrom/receipt Sat Mar 08 16:39:00 2008 +0100 1.3 @@ -13,7 +13,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 @@ -30,7 +30,7 @@ 1.13 line="-$i,2 +$i,26" 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 @@ -76,7 +76,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 @@ -89,5 +89,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 }
2.1 --- a/slitaz-loram/receipt Sat Mar 08 15:27:14 2008 +0100 2.2 +++ b/slitaz-loram/receipt Sat Mar 08 16:39:00 2008 +0100 2.3 @@ -14,7 +14,7 @@ 2.4 cp stuff/loram.* $fs/etc/tazlito 2.5 } 2.6 2.7 -get_patch() 2.8 +set_patch() 2.9 { 2.10 local tag 2.11 local line 2.12 @@ -31,7 +31,7 @@ 2.13 line="-$i,2 +$i,15" 2.14 i="+" 2.15 fi 2.16 - cat <<EOF 2.17 + patch -p0 <<EOF 2.18 --- $1/etc/init.d/rcS 2.19 +++ $1/etc/init.d/rcS 2.20 @@ $line @@ 2.21 @@ -66,7 +66,7 @@ 2.22 { 2.23 local root 2.24 root=$1 2.25 - get_patch "$root" | patch -p0 2.26 + set_patch "$root" 2.27 if [ ! -x /bin/funionfs ]; then 2.28 cat <<EOF 2.29 You will build a live CD with /usr mounted read-only. 2.30 @@ -79,5 +79,5 @@ 2.31 # Pre remove commands for Tazpkg. 2.32 pre_remove() 2.33 { 2.34 - get_patch '' -R | patch -p0 2.35 + set_patch '' -R 2.36 }