#!/bin/bash echo "------------- CORE INSTALLATION ------------" export BUILDING=true export PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin source /opt/core_run.env if [[ -f ./build.env ]]; then echo sourcing a custom core build enviornment cat ./build.env echo "--------" source ./build.env fi source $LIB_DIR/verbose.lib echo appending pkg commands to core_run.env echo appending sourcing of $ENV_DIR/run.env if it exists cat <> /opt/core_run.env export INSTALL_PKGS="$INSTALL_PKGS" export UPDATE_PKGS="$UPDATE_PKGS" [ -f "\$ENV_DIR/run.env" ] && [ -z "\$BUILDING" ] && source \$ENV_DIR/run.env ENV quiet cat /opt/core_run.env mkdir -p /etc/profile.d echo creating login sourcing file for core_run.env in /etc/profile.d echo "source /opt/core_run.env" > /etc/profile.d/01-core-run-env.sh quiet ls -la /etc/profile.d [[ $USER_PW ]] && export USER=${USER:-host} if [[ $USER ]]; then export UHID=${UHID:-1000} chown -R -h $UHID:$UHID /opt $VOLUME_DIRS /bin/bash user.sh fi [[ $UCI_SHELL ]] && /bin/bash uci-shell.sh ls -la /opt echo "done ------------- CORE INSTALLATION ------------"