Browse Source

olinux: Remove whitespaces

Sebastien Badia 10 years ago
parent
commit
37fabf9720
3 changed files with 10 additions and 10 deletions
  1. 5 5
      olinux/create_arm_debootstrap.sh
  2. 4 4
      olinux/create_device.sh
  3. 1 1
      olinux/create_sunxi_boot_files.sh

+ 5 - 5
olinux/create_arm_debootstrap.sh

@@ -21,8 +21,8 @@ cat <<EOF
   -t		target directory for debootstrap	(default: /olinux/debootstrap)
   -t		target directory for debootstrap	(default: /olinux/debootstrap)
   -i		install sunxi kernel files; you should have build them before.
   -i		install sunxi kernel files; you should have build them before.
   -y		install yunohost (doesn't work with cross debootstrap)
   -y		install yunohost (doesn't work with cross debootstrap)
-  -c		cross debootstrap 
-  -p		use aptcacher proxy 
+  -c		cross debootstrap
+  -p		use aptcacher proxy
 
 
 EOF
 EOF
 exit 1
 exit 1
@@ -80,7 +80,7 @@ if [ ${CROSS} ] ; then
   # Debootstrap
   # Debootstrap
   mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
   mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
   bash ${REP}/script/binfmt-misc-arm.sh unregister
   bash ${REP}/script/binfmt-misc-arm.sh unregister
-  bash ${REP}/script/binfmt-misc-arm.sh 
+  bash ${REP}/script/binfmt-misc-arm.sh
   debootstrap --arch=armhf --foreign $DEBIAN_RELEASE $TARGET_DIR
   debootstrap --arch=armhf --foreign $DEBIAN_RELEASE $TARGET_DIR
   cp /usr/bin/qemu-arm-static $TARGET_DIR/usr/bin/
   cp /usr/bin/qemu-arm-static $TARGET_DIR/usr/bin/
   cp /etc/resolv.conf $TARGET_DIR/etc
   cp /etc/resolv.conf $TARGET_DIR/etc
@@ -195,10 +195,10 @@ if [ ${CROSS} ] ; then
 fi
 fi
 
 
 if [ ${APTCACHER} ] ; then
 if [ ${APTCACHER} ] ; then
-  rm $TARGET_DIR/etc/apt/apt.conf.d/01proxy 
+  rm $TARGET_DIR/etc/apt/apt.conf.d/01proxy
 fi
 fi
 
 
-# Umount proc, sys, and dev 
+# Umount proc, sys, and dev
 umount -l $TARGET_DIR/dev/pts
 umount -l $TARGET_DIR/dev/pts
 umount -l $TARGET_DIR/dev
 umount -l $TARGET_DIR/dev
 umount -l $TARGET_DIR/proc
 umount -l $TARGET_DIR/proc

+ 4 - 4
olinux/create_device.sh

@@ -62,15 +62,15 @@ if [ "${DEVICE}" = "img" ] ; then
   rm -f ${TARGET}
   rm -f ${TARGET}
   # create image file
   # create image file
   dd if=/dev/zero of=${TARGET} bs=1MB count=$IMGSIZE status=noxfer >/dev/null 2>&1
   dd if=/dev/zero of=${TARGET} bs=1MB count=$IMGSIZE status=noxfer >/dev/null 2>&1
-  
+
   # find first avaliable free device
   # find first avaliable free device
   DEVICE=$(losetup -f)
   DEVICE=$(losetup -f)
   IMGSIZE="100%"
   IMGSIZE="100%"
   TYPE="loop"
   TYPE="loop"
-  
+
   # mount image as block device
   # mount image as block device
   losetup $DEVICE ${TARGET}
   losetup $DEVICE ${TARGET}
-  
+
   sync
   sync
 
 
 elif [ ! -z $IMGSIZE ] ; then
 elif [ ! -z $IMGSIZE ] ; then
@@ -81,7 +81,7 @@ fi
 
 
 # create one partition starting at 2048 which is default
 # create one partition starting at 2048 which is default
 echo "- Partitioning"
 echo "- Partitioning"
-parted --script $DEVICE mklabel msdos 
+parted --script $DEVICE mklabel msdos
 parted --script $DEVICE mkpart primary ext4 2048s ${IMGSIZE}
 parted --script $DEVICE mkpart primary ext4 2048s ${IMGSIZE}
 parted --script $DEVICE align-check optimal 1
 parted --script $DEVICE align-check optimal 1
 
 

+ 1 - 1
olinux/create_sunxi_boot_files.sh

@@ -125,7 +125,7 @@ fi
 if [ ${CROSS} ] ; then
 if [ ${CROSS} ] ; then
   make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
   make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
 else
 else
-  make CC=/usr/bin/gcc-4.7 
+  make CC=/usr/bin/gcc-4.7
 fi
 fi
 
 
 # Linux kernel
 # Linux kernel