contrib/kameleon_bashrc.sh in kameleon-builder-2.3.5 vs contrib/kameleon_bashrc.sh in kameleon-builder-2.4.0

- old
+ new

@@ -6,10 +6,11 @@ export DEBIAN_FRONTEND=noninteractive mkdir -p $(dirname <%= @bash_history_file %>) ; touch "<%= @bash_history_file %>" mkdir -p $(dirname <%= @bash_env_file %>) ; touch "<%= @bash_env_file %>" +mkdir -p $(dirname <%= @bash_status_file %>) ; touch "<%= @bash_status_file %>" source /etc/bash.bashrc 2> /dev/null export KAMELEON_CONTEXT_NAME="<%= @context_name %>_context" export HISTFILE="<%= @bash_history_file %>" @@ -19,10 +20,12 @@ function fail { echo $@ 1>&2 false } +export -f fail + ## aliases if [ -t 1 ] ; then # restore previous env source "<%= @bash_env_file %>" 2> /dev/null export TERM=xterm @@ -184,10 +187,12 @@ fi fi fi } +export -f __download + function __find_linux_boot_device() { local PDEVICE=`stat -c %04D /boot` for file in $(find /dev -type b 2>/dev/null) ; do local CURRENT_DEVICE=$(stat -c "%02t%02T" $file) if [ $CURRENT_DEVICE = $PDEVICE ]; then @@ -195,5 +200,7 @@ break; fi done echo "$ROOTDEVICE" } + +export -f __find_linux_boot_device