From: sev Date: Sat, 30 May 2020 18:45:06 +0000 (-0500) Subject: add `se' alias, update syslinux stuff X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/cd5c7e1dff9ef0e9f5bba73d3d83d6e2aa5e1776?ds=inline add `se' alias, update syslinux stuff --- diff --git a/base/.zshrc b/base/.zshrc index 96f14c5..1f6e987 100644 --- a/base/.zshrc +++ b/base/.zshrc @@ -54,6 +54,7 @@ if [[ "$OSTYPE" =~ '^(free|net)bsd' ]] { } else { alias ll="ls -lAFh" } +alias se=sudoedit ## ps local p= if which pstree >/dev/null 2>&1 && ! check-busybox pstree; then diff --git a/root/syslinux.cfg b/root/syslinux.cfg old mode 100755 new mode 100644 diff --git a/root/update-extlinux.conf b/root/update-extlinux.conf new file mode 100644 index 0000000..9ee0e0f --- /dev/null +++ b/root/update-extlinux.conf @@ -0,0 +1,92 @@ +# we are using the fact that this is a sourced sh script to take over and +# handle updating ourselves. config is static and does not need changes. + +version=$version-mod +verbose=0 + +# replicate existing script +everbose() { + if [ "$verbose" = "0" ]; then + return + fi + + echo $* +} + +ewarn() { + echo "WARNING:" $@ >&2 +} + +eerror() { + echo "ERROR:" $@ >&2 + return 1 +} + +usage() { + echo "usage: $0 [-v|--verbose] [--warn-only]" +} + +# NOTE: no-op for most options +while [ $# -gt 0 ]; do + opt="$1" + shift + case "$opt" in + -v|--verbose) + verbose=1 + ;; + --warn-only) + warn_only=1 + ;; + --) + break + ;; + -*) + usage + exit 1 + ;; + esac +done + +src=/usr/share/syslinux/efi64 +boot=/boot/EFI/Boot +everbose "Installing binaries from $src to $boot" +cp $src/*.c32 $src/ldlinux.e64 $boot +cp $src/syslinux.efi $boot/bootx64.efi + +ids=/usr/share/hwdata/pci.ids +bootids=hdt/pci.ids +apkargs="-q --no-progress" +if ! apk info -e hwids-pci >/dev/null; then + everbose "Installing hwids-pci" + if apk $apkargs add hwids-pci; then + undo_hwids=1 + else + ewarn $(cat <