#!/bin/bash # Program: # Function for drbl_PXE_PV-VM_create.sh # Author: # Jazz, Rock {jazz, rock}@nchc.org.tw # Version: # 1.0 # History: # 2010/07/20 Rock First release (1.0) # [Variable Declation] # [Check Root] function check_root(){ if [ $USER != "root" ]; then echo -e "Please change root to run it!" exit fi } function check_root_run(){ if [ $USER != "root" ]; then echo -e "Please change root to run it!" sudo su -c ~/"$0" "$@" exit fi } # [Check Parameter] #function check_parameters(){ #echo "fun $1" #if [ -z $(echo $1) ]; then #Usage && exit 2 #fi # #}