ODROID-M1: fixup: add '[trusted=yes]' except Ubuntu 20.04 (Focal)

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I4ffee2cf1119867f42c4b1640ad62ea9193618da
This commit is contained in:
Dongjin Kim
2022-05-24 21:28:00 +09:00
parent 17d0d9bd85
commit 65f38b8dfe

View File

@@ -1,8 +1,12 @@
#!/bin/sh
CODENAME=$(lsb_release -cs)
[ "x${CODENAME}" = "xfocal" ] || OPTION="[trusted=yes]"
cat>>/etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list<<__EOF
deb [trusted=yes] http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ rk3568
deb [trusted=yes] http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ rockchip
deb ${OPTION} http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ rk3568
deb ${OPTION} http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ rockchip
__EOF
sed -i "/non-free/d" /etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list