# HG changeset patch # User Christophe Lincoln # Date 1397789299 -7200 # Node ID 978bed95e0f559dd9a85ece357fcde0a5ac0f833 # Parent d524a624d83421d517b96787bde512a7b8d217d9 slitaz-boot-scripts: adapt receipt to ARM diff -r d524a624d834 -r 978bed95e0f5 slitaz-boot-scripts/receipt --- a/slitaz-boot-scripts/receipt Fri Apr 18 04:35:22 2014 +0200 +++ b/slitaz-boot-scripts/receipt Fri Apr 18 04:48:19 2014 +0200 @@ -11,7 +11,11 @@ WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz" HOST_ARCH="i486 arm" -CONFIG_FILES="/etc/inittab /etc/init.d/local.sh /etc/rcS.conf /etc/network.conf" +CONFIG_FILES=" +/etc/inittab +/etc/init.d/local.sh +/etc/rcS.conf +/etc/network.conf" # Needed to fetch the keymaps and test the filesystem. DEPENDS="kbd-base e2fsprogs busybox" @@ -30,16 +34,28 @@ cp -a $src/init $fs cp -a $src/applications $fs/usr/share - # Perms chown -R root.root $fs chmod 755 $fs/etc/init.d/*.sh chmod 755 $fs/etc/init.d/rc* chmod 755 $fs/init + + case "$ARCH" in + arm*) + # Provided by slitaz-arm-configs + rm \ + $fs/etc/rcS.conf \ + $fs/etc/inittab \ + $fs/etc/init.d/rcS \ + $fs/etc/init.d/shutdown.sh \ + $fs/etc/init.d/system.sh ;; + esac } # Post install commands. # post_install() { - chroot $1/ /usr/bin/rcSconf up + case "$SLITAZ_ARCH" in + i?86) chroot $1/ /usr/bin/rcSconf up ;; + esac }