wok rev 16424

slitaz-boot-scripts: adapt receipt to ARM
author Christophe Lincoln <pankso@slitaz.org>
date Fri Apr 18 04:48:19 2014 +0200 (2014-04-18)
parents d524a624d834
children 55d0af4ee1f1
files slitaz-boot-scripts/receipt
line diff
     1.1 --- a/slitaz-boot-scripts/receipt	Fri Apr 18 04:35:22 2014 +0200
     1.2 +++ b/slitaz-boot-scripts/receipt	Fri Apr 18 04:48:19 2014 +0200
     1.3 @@ -11,7 +11,11 @@
     1.4  WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
     1.5  HOST_ARCH="i486 arm"
     1.6  
     1.7 -CONFIG_FILES="/etc/inittab /etc/init.d/local.sh /etc/rcS.conf /etc/network.conf"
     1.8 +CONFIG_FILES="
     1.9 +/etc/inittab 
    1.10 +/etc/init.d/local.sh
    1.11 +/etc/rcS.conf
    1.12 +/etc/network.conf"
    1.13  
    1.14  # Needed to fetch the keymaps and test the filesystem.
    1.15  DEPENDS="kbd-base e2fsprogs busybox"
    1.16 @@ -30,16 +34,28 @@
    1.17  	cp -a $src/init $fs
    1.18  	cp -a $src/applications $fs/usr/share
    1.19  
    1.20 -	# Perms
    1.21  	chown -R root.root $fs
    1.22  	chmod 755 $fs/etc/init.d/*.sh
    1.23  	chmod 755 $fs/etc/init.d/rc*
    1.24  	chmod 755 $fs/init
    1.25 +	
    1.26 +	case "$ARCH" in
    1.27 +		arm*)
    1.28 +			# Provided by slitaz-arm-configs
    1.29 +			rm \
    1.30 +				$fs/etc/rcS.conf \
    1.31 +				$fs/etc/inittab \
    1.32 +				$fs/etc/init.d/rcS \
    1.33 +				$fs/etc/init.d/shutdown.sh \
    1.34 +				$fs/etc/init.d/system.sh ;;
    1.35 +	esac
    1.36  }
    1.37  
    1.38  # Post install commands.
    1.39  #
    1.40  post_install()
    1.41  {
    1.42 - 	chroot $1/ /usr/bin/rcSconf up
    1.43 +	case "$SLITAZ_ARCH" in
    1.44 +		i?86) chroot $1/ /usr/bin/rcSconf up ;;
    1.45 +	esac
    1.46  }