-function ifup () {
- echo "${VT_BOLD}${VT_GREEN_FG}This is the bash function ifup from .bashrc${VT_RESET}"
- if [[ "$1" == "-s" ]]; then
- chosen_ifup=$(mktemp /tmp/chosen_ifup.XXXXXX)
- selector -i -d -o ${chosen_ifup} ${IFUPRC}
- ARGS=$(cat ${chosen_ifup})
- rm -f ${chosen_ifup}
- echo ${ARGS} >> ${IFUPRC}
+alias ifup="echo Try netup"
+alias ifdown="echo Try netdown"
+
+function netup () {
+ if [[ ! "$@" ]] && [[ -s ${NETUP_HISTORY} ]]; then
+ # If we have no argument and there is a .netup_history, use it
+ ARGS=$(cat ${NETUP_HISTORY})