#!/bin/bash # info: restart operating system # options: restart # # The function restarts operating system. #----------------------------------------------------------# # Variable&Function # #----------------------------------------------------------# # Argument definition restart=$1 # Includes source $VESTA/func/main.sh #----------------------------------------------------------# # Verifications # #----------------------------------------------------------# check_args '1' "$#" 'RESTART' #----------------------------------------------------------# # Action # #----------------------------------------------------------# if [ "$restart" = 'yes' ]; then /sbin/reboot fi #----------------------------------------------------------# # Vesta # #----------------------------------------------------------# exit