From edac8c6141f2b2b52a411a1fd857dc27e19990d1 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Wed, 6 Oct 2021 20:09:46 +0200 Subject: [PATCH] add a few scripts and a few new manuals --- altools/chroot-al | 12 ++++++++++++ man/chroot-al.1.md | 4 ++++ man/manmake.sh | 12 ++++++++++-- man/mkinitramfs.8.md | 3 +++ man/repo.7.md | 3 +++ man/sel.7.md | 4 ++++ 6 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 man/chroot-al.1.md create mode 100644 man/mkinitramfs.8.md create mode 100644 man/repo.7.md create mode 100644 man/sel.7.md diff --git a/altools/chroot-al b/altools/chroot-al index e69de29..cdd2111 100644 --- a/altools/chroot-al +++ b/altools/chroot-al @@ -0,0 +1,12 @@ +#!/bin/sh + +mount -t proc /proc $1/proc +mount -t sysfs /sys $1/sys +mount -o bind /dev $1/dev +mount -o bind /run $1/run +mount -o bind /sys/firmware/efi/efivars $1/sys/firmware/efi/efivars +cp /etc/resolv.conf $1/etc/resolv.conf +export MAKEFLAGS="-j$(nproc)" +export CFLAGS="-O2 -pipe -march-native" +export CXXFALGS="${CFLAGS}" +chroot $1 /bin/sh \ No newline at end of file diff --git a/man/chroot-al.1.md b/man/chroot-al.1.md new file mode 100644 index 0000000..1dd5e47 --- /dev/null +++ b/man/chroot-al.1.md @@ -0,0 +1,4 @@ +chroot-al(1) +# Alnux Chroot +Alnux chroot serves a simple purpose, portable to any system; +chroot into a system with rebinded system directories. \ No newline at end of file diff --git a/man/manmake.sh b/man/manmake.sh index 50ebf0a..ae77634 100755 --- a/man/manmake.sh +++ b/man/manmake.sh @@ -3,17 +3,25 @@ function clean(){ set -x rm aps.8 rm alnux-pkg-standard.7 + rm sel.7 + rm repo.7 + rm mkinitramfs.8 + rm chroot-al.1 } function scdocbuild(){ set -x scdoc < aps.8.md > aps.8 scdoc < alnux-pkg-standard.7.md > alnux-pkg-standard.7 + scdoc < sel.7.md > sel.7 + scdoc < repo.7.md > repo.7 + scdoc < mkinitramfs.8.md > mkinitramfs.8 + scdoc < chroot-al.1.md > chroot-al.1 } function main(){ case $1 in - panbuild) scdocbuild || echo "scdoc is missing!" ;; + scdocbuild) scdocbuild ;; clean) clean ;; - *) scdocbuild || echo "scdoc is missing" ;; + *) scdocbuild ;; esac } main $1 \ No newline at end of file diff --git a/man/mkinitramfs.8.md b/man/mkinitramfs.8.md new file mode 100644 index 0000000..b84d752 --- /dev/null +++ b/man/mkinitramfs.8.md @@ -0,0 +1,3 @@ +mkinitramfs(7) +# mkinitramfs +Alnux's mkinitramfs, it does not accept ANY flags, it's just there to make the initramfs. \ No newline at end of file diff --git a/man/repo.7.md b/man/repo.7.md new file mode 100644 index 0000000..c4b783d --- /dev/null +++ b/man/repo.7.md @@ -0,0 +1,3 @@ +repo(7) +# repo +Can be used to manage repositories for aps. \ No newline at end of file diff --git a/man/sel.7.md b/man/sel.7.md new file mode 100644 index 0000000..b4927b7 --- /dev/null +++ b/man/sel.7.md @@ -0,0 +1,4 @@ +sel(7) +# sel +A alnux select script, can be used for symlinking your linux version and to +write a linux package for aps. \ No newline at end of file