| 123456789101112131415161718192021222324252627282930313233343536373839 |
- #!/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
|