Fixed chroot command for image customization, fixed line endings

This commit is contained in:
zador-blood-stained
2015-12-22 22:37:58 +03:00
parent bd0cf35032
commit c613a9f23b
2 changed files with 27 additions and 27 deletions

View File

@@ -372,7 +372,7 @@ closing_image (){
display_alert "Possible after install." "customize-image.sh" "info"
cp $SRC/userpatches/customize-image.sh $DEST/cache/sdcard/tmp/customize-image.sh
chmod +x $DEST/cache/sdcard/tmp/customize-image.sh
chroot $DEST/cache/sdcard /bin/bash "/tmp/customize-image.sh $RELEASE $FAMILY $BOARD $BUILD_DESKTOP"
chroot $DEST/cache/sdcard /bin/bash -c "/tmp/customize-image.sh $RELEASE $FAMILY $BOARD $BUILD_DESKTOP"
chroot $DEST/cache/sdcard /bin/bash -c "sync"
sync
sleep 3

View File

@@ -1,26 +1,26 @@
#!/bin/bash
# arguments: $RELEASE $FAMILY $BOARD $BUILD_DESKTOP
#
# This is the image customization script
#
# NOTE: It is copied to /tmp directory inside the image
# and executed there inside chroot environment
# so don't reference any files that are not already installed
RELEASE=$1
FAMILY=$2
BOARD=$3
BUILD_DESKTOP=$4
case $RELEASE in
wheezy)
# your code here
;;
jessie)
# your code here
;;
trusty)
# your code here
;;
esac
#!/bin/bash
# arguments: $RELEASE $FAMILY $BOARD $BUILD_DESKTOP
#
# This is the image customization script
#
# NOTE: It is copied to /tmp directory inside the image
# and executed there inside chroot environment
# so don't reference any files that are not already installed
RELEASE=$1
FAMILY=$2
BOARD=$3
BUILD_DESKTOP=$4
case $RELEASE in
wheezy)
# your code here
;;
jessie)
# your code here
;;
trusty)
# your code here
;;
esac