#!/bin/sh -e [ "$(/usr/bin/id -u)" -eq 0 ] || ( echo "Run this script as root." >&2; exit 1 ) do_patch_sudoers() { cat > %%PREFIX%%/etc/sudoers.d/00-wheel-gets-all <<"EOF" # Allow members of group wheel to execute any command %wheel ALL=(ALL) ALL EOF } do_bash_config() { %%PREFIX%%/share/bash-config/fixskel -i %%PREFIX%%/share/bash-config/fixuser -i } steps="patch_sudoers bash_config" for step in ${steps} do echo "=> Performing step: ${step}" do_${step} echo "=> Done with step ${step}" echo "" done echo "All done. You need not keep this port installed, unless" echo "you wish to track changes made to the base set."