fonctionnalisation - premier ajoute d'une plateforme
fonctionnalisation
This commit is contained in:
parent
a31897d419
commit
cafd8776b5
47
platforms/bananaPro/specialFunctions.sh
Normal file
47
platforms/bananaPro/specialFunctions.sh
Normal file
@ -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
|
||||
}
|
Reference in New Issue
Block a user