Skip to content

Instantly share code, notes, and snippets.

name: FreeBSD
origin: base
version: "14.0p6"
comment: '"Meta-package" for full FreeBSD 14.0p6 base system'
categories: [ "base" ]
www: "https://www.FreeBSD.org"
maintainer: "[email protected]"
prefix: /
vital: false
licenselogic: single
#!/bin/sh
set -Cefu -o pipefail
cleanup() {
if [ -d "${TMP_DIR:?}" ]; then
echo rm -rf -- "${TMP_DIR:?}"
fi
trap - EXIT
}
init_path="/command/s6-init:/sbin/init:/sbin/oinit:/sbin/init.bak:/rescue/init"
: ?# ( d -- d ) 2dup or 0= if bl hold else # then ;
: .padded ( n -- ) >r 0 <# r> 0 do ?# loop #> type ;
20 1024 * constant ram-size
$1FFFF7E0 h@ 1024 * constant flash-size
: compiletoram! ( ? -- ) if compiletoram else compiletoflash then ;
: flash-free ( -- n )
compiletoram?
compiletoflash flash-size here -
swap compiletoram! ;
\ Copyright 2020 Jan Bramkamp
\
\ Permission is hereby granted, free of charge, to any person obtaining a copy
\ of this software and associated documentation files (the "Software"), to deal
\ in the Software without restriction, including without limitation the rights
\ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\ copies of the Software, and to permit persons to whom the Software is
\ furnished to do so, subject to the following conditions:
\
\ The above copyright notice and this permission notice shall be included in