mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
51 lines
2.5 KiB
Bash
51 lines
2.5 KiB
Bash
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
build ()
|
|
{
|
|
apps="head id cksum tail test uptime w who whoami xargs \
|
|
swapon uniq seq fdisk sfdisk cfdisk parted free less \
|
|
chgrp dialog dmesg egrep fgrep stty hdparm sync bsdcpio\
|
|
dirname chroot expr bunzip2 bzcat bzip2 su sdparm tput \
|
|
losetup mkfifo mknod lzmadec lzop lzma lzcat unlzma unxz xzcat \
|
|
lastb last wall mesg utmpdump xzdec switch_root pivot_root chcpu ctrlaltdel \
|
|
gdisk sgdisk cgdisk fixparts findmnt lsblk swaplabel cal chrt col colcrt \
|
|
colrm column fallocate flock getopt ionice ipcmk ipcrm ipcs swapoff \
|
|
look lsfd lscpu mcookie namei prlimit rename renice rev script scriptreplay uname26 \
|
|
linux32 linux64 setarch setsid setterm taskset ul unshare uuidgen whereis write \
|
|
addpart delpart ldattach partx readprofile rtcwake uuidd sysctl pidwait pkill pmap \
|
|
pwdx slabtop tload vmstat watch eject keyctl request-key tac \
|
|
sulogin resizepart lslocks wdctl zless zgrep fold hexdump shred blockdev blkdiscard \
|
|
newgrp nsenter runuser vigr vipw diff lsmod lzcmp lzdiff lzegrep \
|
|
lzgrep lzfgrep xzegrep xzfgrep xzgrep lzless lzmore reset blkzone \
|
|
chmem choom fincore hardlink irqtop lsipc lsirq lslogins lsmem lsns mkfs scriptlive \
|
|
setpriv uclampset uuidparse zramctl [ b2sum base32 base64 basenc chcon comm csplit \
|
|
dircolors expand factor fmt hostid join link logname md5sum nice nl nohup \
|
|
nproc numfmt paste pathchk pinky pr printenv ptx runcon sha1sum sha224sum \
|
|
sha256sum sha384sum sha512sum shuf split stdbuf sum timeout truncate tsort \
|
|
unexpand unlink users vdir fuser prtstat pslog pstree newgidmap newuidmap \
|
|
lzmainfo xzcmp gzexe uncompress zcmp zdiff zegrep zfgrep zforce zmore znew \
|
|
bzdiff bzgrep bzip2recover bzmore chacl getfacl setfacl attr getfattr \
|
|
setfattr pzstd unzstd zstdcat zstdgrep zstdless zstdmt lz4 lz4c lz4cat unlz4 \
|
|
gunzip zcat wipe file"
|
|
if [[ "$(uname -m)" == "x86_64" ]]; then
|
|
apps="i386 x86_64 peekfd $apps"
|
|
fi
|
|
if [[ "$(uname -m)" == "aarch64" ]]; then
|
|
apps="peekfd $apps"
|
|
fi
|
|
for i in $apps; do
|
|
rm /usr/bin/"$i"
|
|
done
|
|
}
|
|
|
|
help ()
|
|
{
|
|
cat <<HELPEOF
|
|
This hook cleans up binaries of archboot_base,
|
|
for a update installer routine.
|
|
DO NOT USE ON REGULAR SYSTEM!.
|
|
HELPEOF
|
|
}
|
|
# vim: set ft=sh ts=4 sw=4 et:
|