We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e56d2e commit dc5ac62Copy full SHA for dc5ac62
roles/linux_preparation/files/use-recore-revision
@@ -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
@@ -92,6 +92,12 @@
92
state: link
93
force: yes
94
95
+- name: Recore - add script to choose revision
96
+ copy:
97
+ src: use-recore-revision
98
+ dest: /usr/local/bin
99
+ mode: '0755'
100
101
- name: Recore - Replace platform name
102
replace:
103
path: /etc/armbian-release
0 commit comments