#!/bin/sh # BusyBox init runs this from the signed release package root. set -eu export PATH=/bin:/usr/bin:/sbin:/usr/sbin LC_ALL=C trap '/sbin/poweroff -f' EXIT test "$(uname -s)" = Vinix test "$(uname -o)" = Vinix machine=$(uname -m) count=0 while IFS= read -r applet; do test -L "/$applet" test "$(readlink -f "/$applet")" = /bin/busybox count=$((count + 1)) done /tmp/busybox-release/result\n' >hooks/01-check chmod 755 hooks/01-check test "$(/bin/run-parts --test hooks)" = hooks/01-check /bin/run-parts hooks test "$(cat result)" = ran if [ "$machine" = aarch64 ]; then test "$(/bin/env /bin/awk 'BEGIN { print 6 * 7 }')" = 42 test "$(/bin/find hooks -name 01-check)" = hooks/01-check fi echo "Vinix $machine verified $count installed BusyBox links and ran a hook" echo 'VPAC FIXTURE GUEST PASS'