Skip to content

Commit dc5ac62

Browse files
authored
Added script to choose revision and to install it (#285)
* Added script to choose revision and to install it * Use copy for installing file
1 parent 6e56d2e commit dc5ac62

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
revision="$1"
4+
5+
case $revision in
6+
a3|a4|a5|a6)
7+
echo "Using recore revision ${revision}"
8+
mount -o remount,rw /dev/mmcblk0p1 /boot
9+
cd /boot/dtb/allwinner/
10+
ln -sf sun50i-a64-recore-$revision.dtb sun50i-a64-recore.dtb
11+
mount -o remount,ro /dev/mmcblk0p1 /boot
12+
;;
13+
*)
14+
echo "usage: $0 a3|a4|a5|a6"
15+
exit 1
16+
;;
17+
esac

roles/linux_preparation/tasks/recore.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@
9292
state: link
9393
force: yes
9494

95+
- name: Recore - add script to choose revision
96+
copy:
97+
src: use-recore-revision
98+
dest: /usr/local/bin
99+
mode: '0755'
100+
95101
- name: Recore - Replace platform name
96102
replace:
97103
path: /etc/armbian-release

0 commit comments

Comments
 (0)