From cafd8776b514d3e70872c1334ea7b7510a1a19b8 Mon Sep 17 00:00:00 2001 From: Jybz Date: Wed, 2 Oct 2019 16:40:19 +0000 Subject: [PATCH] fonctionnalisation - premier ajoute d'une plateforme fonctionnalisation --- platforms/bananaPro/specialFunctions.sh | 47 +++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 platforms/bananaPro/specialFunctions.sh diff --git a/platforms/bananaPro/specialFunctions.sh b/platforms/bananaPro/specialFunctions.sh new file mode 100644 index 0000000..b0dc357 --- /dev/null +++ b/platforms/bananaPro/specialFunctions.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +#RPI partitionning : +DEFAULT="" +NEW_PART=n +PRIMARY=p +CHANGE_TYPE=t +CHANGE_BOOTFLAG=a +APPLY=w + +PART_BOOT=1 +PART_BOOT_FIRST_SECTOR=${DEFAULT} +PART_BOOT_SIZE="+128M" + +PART_ROOT=2 +PART_ROOT_FIRST_SECTOR=${DEFAULT} +PART_ROOT_SIZE=${DEFAULT} + +TYPE_FAT32LBA=c + +FDISK_SCRIPT="${NEW_PART}\n${PRIMARY}\n${PART_BOOT}\n${PART_BOOT_FIRST_SECTOR}\n${PART_BOOT_SIZE}\n${CHANGE_TYPE}\n${TYPE_FAT32LBA}\n${NEW_PART}\n${PRIMARY}\n${PART_ROOT}\n${PART_ROOT_FIRST_SECTOR}\n${PART_ROOT_SIZE}\n${CHANGE_BOOTFLAG}\n${PART_BOOT}\n${CHANGE_BOOTFLAG}\n${PART_ROOT}\n${APPLY}\n" + + +function preImgCreation() +{ + title "Creating Banana Pro image" + return 0 +} + + +function postPrepareChroot() +{ + #Nothing to do. (Except replacing default function.) + return 0 +} + +function bunrningBootloader() +{ + #Nothing to do. (Except replacing default function.) + return 0 +} + +function copyingCustomSystem() +{ + #Nothing to do. (Except replacing default function.) + return 0 +}