190 changes: 0 additions & 190 deletions README_jp.md

This file was deleted.

159 changes: 159 additions & 0 deletions add-key.sh
@@ -0,0 +1,159 @@
#!/usr/bin/env bash
#
# Yamada Hayao
# Twitter: @Hayao0819
# Email : hayao@fascone.net
#
# (c) 2019-2020 Fascode Network.
#
# add-key.sh
#
# Script to import AlterLinux and ArchLinux keys.
#


set -eu

script_path="$(readlink -f ${0%/*})"


# Set pacman.conf when build alterlinux
alter_pacman_conf="${script_path}/system/pacman.conf"


# erro message
msg_error() {
echo -e "[add-key.sh] ERROR : ${@}" >&2
}


# info message
msg_info() {
echo -e "[add-key.sh] INFO: ${@}" >&1
}


# Show usage
_usage () {
echo "usage ${0} [options]"
echo
echo " General options:"
echo " --alter Add alterlinux-keyring."
echo " --arch Add archlinux-keyring"
echo " -h Show this help and exit."
}


# Check if the package is installed.
checkpkg() {
local _pkg
_pkg=$(echo "${1}" | cut -d'/' -f2)

if [[ ${#} -gt 2 ]]; then
msg_error "Multiple package specification is not available."
fi

if [[ -n $( pacman -Q "${_pkg}" 2> /dev/null| awk '{print $1}' ) ]]; then
echo -n "true"
else
echo -n "false"
fi
}


_pacman_install() {
for i in ${@}; do
if [[ $(checkpkg "${i}") = false ]]; then
pacman -S --noconfirm "${i}"
fi
done
}


run() {
msg_info "Running ${@}"
${@}
}


prepare() {
if [[ ! ${UID} = 0 ]]; then
msg_error "You dont have root permission."
msg_error 'Please run as root.'
exit 1
fi

if [[ ! -f "${alter_pacman_conf}" ]]; then
msg_error "${alter_pacman_conf} does not exist."
exit 1
fi
}


update_arch_key() {
pacman-key --init
pacman-key --populate archlinux
_pacman_install core/archlinux-keyring
pacman-key --refresh-keys
}


update_system() {
pacman -Syy
}


upgrade_system() {
pacman -Syu
}


updae_alter_key() {
curl -L -o "/tmp/fascode.pub" "https://山d.com/repo/fascode.pub"
pacman-key -a "/tmp/fascode.pub"
rm -f "/tmp/fascode.pub"
pacman-key --lsign-key development@fascode.net

pacman --config "${alter_pacman_conf}" -Syy --noconfirm
pacman --config "${alter_pacman_conf}" -S --noconfirm alter-stable/alterlinux-keyring

pacman-key --init
pacman-key --populate alterlinux
}


# 引数解析
while getopts 'h-:' arg; do
case "${arg}" in
h) _usage ; exit 0;;
-)
case "${OPTARG}" in
alter)
run prepare
run updae_alter_key
;;
arch)
run prepare
run update_arch_key
;;
system)
run prepare
run update_system
run upgrade_system
;;
help) _usage ;;
esac
;;
*) _usage; exit 1;;
esac
done


# 引数が何もなければ全てを実行する
if [[ ${#} = 0 ]]; then
run prepare
run update_arch_key
run update_system
run updae_alter_key
run update_system
fi
1 change: 0 additions & 1 deletion airootfs/etc/hostname

This file was deleted.

11 changes: 0 additions & 11 deletions airootfs/etc/skel/.bashrc

This file was deleted.

5 changes: 0 additions & 5 deletions airootfs/etc/skel/.config/gtk-3.0/bookmarks

This file was deleted.

2 changes: 0 additions & 2 deletions airootfs/etc/skel/.config/xfce4/panel/docklike-2.rc

This file was deleted.

81 changes: 0 additions & 81 deletions airootfs/etc/skel/.config/xfce4/panel/whiskermenu-3.rc

This file was deleted.

30 changes: 0 additions & 30 deletions airootfs/etc/skel/.config/xfce4/terminal/terminalrc

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

35 changes: 0 additions & 35 deletions airootfs/etc/skel/.setup.sh

This file was deleted.

16 changes: 0 additions & 16 deletions airootfs/etc/skel/Desktop/calamares.desktop

This file was deleted.

This file was deleted.

184 changes: 0 additions & 184 deletions airootfs/root/customize_airootfs.sh

This file was deleted.

11 changes: 0 additions & 11 deletions airootfs/usr/lib/os-release

This file was deleted.

16 changes: 0 additions & 16 deletions airootfs/usr/share/applications/calamares.desktop

This file was deleted.

Binary file removed airootfs/usr/share/backgrounds/alter.png
Binary file not shown.
Binary file removed airootfs/usr/share/backgrounds/login.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed airootfs/usr/share/calamares/branding/alter/logo-16.png
Binary file not shown.
131 changes: 0 additions & 131 deletions airootfs/usr/share/calamares/branding/alter/show.qml

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
54 changes: 0 additions & 54 deletions airootfs/usr/share/calamares/modules/bootloader.conf

This file was deleted.

58 changes: 0 additions & 58 deletions airootfs/usr/share/calamares/modules/displaymanager.conf

This file was deleted.

44 changes: 0 additions & 44 deletions airootfs/usr/share/calamares/modules/finished.conf

This file was deleted.

34 changes: 0 additions & 34 deletions airootfs/usr/share/calamares/modules/grubcfg.conf

This file was deleted.

176 changes: 0 additions & 176 deletions airootfs/usr/share/calamares/modules/packages.conf

This file was deleted.

28 changes: 0 additions & 28 deletions airootfs/usr/share/calamares/modules/plymouthcfg.conf

This file was deleted.

49 changes: 0 additions & 49 deletions airootfs/usr/share/calamares/modules/preservefiles.conf

This file was deleted.

105 changes: 0 additions & 105 deletions airootfs/usr/share/calamares/modules/services.conf

This file was deleted.

10 changes: 0 additions & 10 deletions airootfs/usr/share/calamares/modules/servicescfg.conf

This file was deleted.

34 changes: 0 additions & 34 deletions airootfs/usr/share/calamares/modules/shellprocess.conf

This file was deleted.

42 changes: 0 additions & 42 deletions airootfs/usr/share/calamares/modules/umount.conf

This file was deleted.

125 changes: 0 additions & 125 deletions airootfs/usr/share/calamares/modules/users.conf

This file was deleted.

92 changes: 0 additions & 92 deletions airootfs/usr/share/calamares/modules/welcome.conf

This file was deleted.

This file was deleted.

This file was deleted.

68 changes: 0 additions & 68 deletions airootfs/usr/share/calamares/qml/calamares/slideshow/NavButton.qml

This file was deleted.