Skip to content

Commit f11b9fd

Browse files
committed
Refactor reboot script
1 parent fad225c commit f11b9fd

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

Apps/Reboot/bg.png

-5.48 KB
Binary file not shown.

Apps/Reboot/launch.sh

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
#!/bin/sh
2-
echo $0 $*
3-
progdir=`dirname "$0"`
4-
cd $progdir
5-
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$progdir
62

7-
echo "=============================================="
8-
echo "================== reboot ==================="
9-
echo "=============================================="
3+
. /mnt/SDCARD/System/scripts/helpers.sh
104

11-
chmod 777 reboot_wait
12-
./reboot_wait&
13-
sleep 1
14-
reboot
5+
display -d 2000 -t "Rebooting your Smart..."
6+
7+
reboot

Apps/Reboot/reboot_wait

-5.41 KB
Binary file not shown.

0 commit comments

Comments
 (0)