Files
odroid-stamper/fixups/S05-repositories
Dongjin Kim 92b81710d9 ODROID-C5: Add new board ODROID-C5 with Amlogic SoC S905X5
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ib1d8e3705b443d014dfe053227f03fa2a62d6399
2025-08-22 16:52:00 +09:00

42 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
CODENAME=$(cat /etc/os-release | grep VERSION_CODENAME | cut -d'=' -f2)
case ${CODENAME} in
"focal" | "buster")
OPTION="deb"
;;
*)
OPTION="deb [trusted=yes]"
;;
esac
if [ ! -f /etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list ]; then
cat>/etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list<<__EOF
${OPTION} http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ main
__EOF
fi
if [ ! "x@@DEFAULT_REPO_COMPONENTS@@" = "x" ]; then
for component in @@DEFAULT_REPO_COMPONENTS@@; do
cat>>/etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list<<__EOF
${OPTION} http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ ${component}
__EOF
done
fi
if [ "x@@INTERNAL@@" = "xtrue" ]; then
cat>>/etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list<<__EOF
${OPTION} http://ppa.linuxfactory.or.kr @@DEFAULT_DISTRO@@ internal
__EOF
fi
if [ "x@@OSNAME@@" = "xdebian" ]; then
cat>>/etc/apt/sources.list<<__EOF
${OPTION} http://deb.debian.org/debian @@DEFAULT_DISTRO@@ non-free-firmware
__EOF
fi
#sed -i 's|^[^#]*jammy-security|#&|' /etc/apt/sources.list
#cat /etc/apt/sources.list.d/ppa-linuxfactory-or-kr.list