Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling Reboot option #15

Open
ShorTie8 opened this issue Jun 28, 2015 · 2 comments
Open

Enabling Reboot option #15

ShorTie8 opened this issue Jun 28, 2015 · 2 comments

Comments

@ShorTie8
Copy link

Mornin -
Got my Odroid-C1 Friday, and have been playing with your utility.
Not sure about the best way to do this.
I added a reboot option to extras.sh/do_exit() if your interested in it

Have A Great Day
ShorTie .. :)~

--- extras.sh.orig 2015-06-28 09:17:15.009791361 +0000
+++ extras.sh 2015-06-28 09:49:31.130361692 +0000
@@ -2,8 +2,13 @@

do_exit() {
if [ $REBOOT -eq 1 ]; then

  •   whiptail --backtitle "Hardkernel ODROID Utility v$_REV" --msgbox \
    
  •   "You need to reboot your board to the new modifications take effects" 0 0
    
  •        whiptail --backtitle "Hardkernel ODROID Utility v$_REV" --yesno \
    
  •        "You need to reboot your $BOARD so the new modifications will take effect
    
  •                 Would you like to reboot now?" 0 0
    
  •        if [ $? -eq 0 ]; then # yes
    
  •            sync
    
  •            reboot
    
  •        fi
    
    fi
    sync
    exit 0
@mdrjr
Copy link
Owner

mdrjr commented Jun 29, 2015

Can you send it as PR ?
I'll happily merge it.

@ShorTie8
Copy link
Author

Kinda new to this github thing.
Think I did it right.

Have A Great Day
ShorTie .. :)~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants