Compare commits
No commits in common. "391795714b0175e21a025ca0bfb905148710592b" and "ed2c91660988d2654d4d6512992797eb4bec740c" have entirely different histories.
391795714b
...
ed2c916609
3 changed files with 4 additions and 20 deletions
10
altools/repo
Executable file → Normal file
10
altools/repo
Executable file → Normal file
|
@ -8,14 +8,6 @@ if [ $(whoami) != root ]; then
|
|||
kill 2
|
||||
else
|
||||
case $1 in
|
||||
# add a repo
|
||||
add) git clone https://${3}/${2}.git /var/aps/repos/${2}
|
||||
echo "${2}" >> /etc/al/repo.conf
|
||||
;;
|
||||
# update a repo
|
||||
update) pushd && cd /var/aps/repos/${2} && git pull && popd ;;
|
||||
# destroy a repo (remove)
|
||||
destroy) rm -rfv /var/aps/repos/${2} ;;
|
||||
|
||||
add) git clone https://${3}/${2}.git /var/aps/repos/${2} ;;
|
||||
esac
|
||||
fi
|
||||
|
|
10
altools/sel
10
altools/sel
|
@ -3,18 +3,15 @@
|
|||
#########################
|
||||
# Alnux sel(ect) Script #
|
||||
#########################
|
||||
. "/etc/al/lnver.cfg"
|
||||
. "/etc/al/lnver.v"
|
||||
case $1 in
|
||||
linux) if [ $(whoami) != root ]; then
|
||||
case $2 in
|
||||
# Lists all kernels
|
||||
list) ls /usr/src/ | grep 'linux' &&
|
||||
ls -L /usr/src/linux 2>/dev/null
|
||||
;;
|
||||
# Sets a kernel version
|
||||
set) lnver=${3} > /etc/al/lnver.cfg
|
||||
set) lnver=${3} > /etc/al/lnver.v
|
||||
;;
|
||||
# Links the set kernel version.
|
||||
link) ln -sv /usr/src/linux-${lnver} /usr/src/linux &&
|
||||
mkdir -pv /var/aps/packages/linux/ &&
|
||||
echo "/boot/vmlinuz-linux-${lnver}" > /var/aps/packages/linux/payloadfiles &&
|
||||
|
@ -24,10 +21,7 @@ case $1 in
|
|||
echo "pkg_config_name='linux'" >> /var/aps/packages/linux/package &&
|
||||
echo "pkg_config_makedepends=''" >> /var/aps/packages/linux/package &&
|
||||
echo "pkg_config_depends=''" >> /var/aps/packages/linux/package
|
||||
|
||||
;;
|
||||
# Destroys the symlink.
|
||||
destroy) rm -rfv /usr/src/linux ;;
|
||||
esac
|
||||
fi
|
||||
esac
|
||||
|
|
|
@ -15,7 +15,5 @@ if [ ${prefix} == / ]; then
|
|||
else
|
||||
install -v aps ${prefix}/usr/bin/ &&
|
||||
install -v altools/sel ${prefix}/usr/bin/ &&
|
||||
install -v altools/repo ${prefix}/usr/bin/ &&
|
||||
${prefix}/usr/bin/aps sync alnux &&
|
||||
install -v tools/* /usr/bin/
|
||||
install -v altools/repo ${prefix}/usr/bin/
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue