RobertCNelson / boot-scripts

Just a bunch of useful scripts placed under /opt/scripts/
125 stars 132 forks source link

Use library functions #39

Closed slamont closed 8 years ago

slamont commented 8 years ago

I saw some previous commits where you needed to modify multiple scripts in functions that were the same across all of them. I took the liberty of looking in the scripts in tools/eMMC and create a functions.sh file that is then "source" and provide all the functions that were the same. Once included, you can override a function by simply creating a new one with the same name.

I validate on a BBG as this is the board I have, but I tried to be careful when looking for the duplicates, hope it will work for the other boards as well.

What do you think about this ?

RobertCNelson commented 8 years ago

Thanks @slamont !!!