mirror of
git://soft.sys114.com/odroid-stamper
synced 2025-12-19 00:18:42 +09:00
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: Ib1d8e3705b443d014dfe053227f03fa2a62d6399
42 lines
1.1 KiB
Bash
Executable File
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
|