mirror of
git://soft.sys114.com/odroid-stamper
synced 2025-12-19 00:18:42 +09:00
ODROID-M1: prevent duplicated trusted resouce error
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: I828abf2830815bb44f1139b882b76e31e3bfaace
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
CODENAME=$(lsb_release -cs)
|
||||
CODENAME=$(cat /etc/os-release | grep VERSION_CODENAME | cut -d'=' -f2)
|
||||
|
||||
[ "x${CODENAME}" = "xfocal" ] || OPTION="[trusted=yes]"
|
||||
case ${CODENAME} in
|
||||
"focal" | "buster")
|
||||
OPTION=""
|
||||
;;
|
||||
*)
|
||||
OPTION="[trusted=yes]"
|
||||
;;
|
||||
esac
|
||||
|
||||
cat>>/etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list<<__EOF
|
||||
deb ${OPTION} http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ rk3568
|
||||
|
||||
Reference in New Issue
Block a user