Skip to content

Commit 86d5338

Browse files
support for simlinks
modes in udroid
1 parent d1f7615 commit 86d5338

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

proot-env/udroid/udroid.sh

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,22 @@ function _backup() {
4545
}
4646

4747
_help() {
48+
_msg_udroid() {
49+
msg "Usage: udroid [command] [options]"
50+
msg "Commands:"
51+
msg " backup [options] - backup udroid to file"
52+
msg " restore [options] - restore udroid from file"
53+
msg " help [command] - show help for command"
54+
msg "Options:"
55+
msg " -h, --help - show this help"
56+
msg " -o, --output - output file"
57+
}
4858
_msg_backup() {
4959
msg "udroid backup [-o|--output <output file>]"
5060
msg "backup udroid to <output file>"
5161
msg
5262
msg "Options:"
53-
msg " -o|--output <output file> : output file name"
63+
msg " -o, --output <output file> : output file name"
5464
msg
5565
}
5666
_msg_servic_exec() {
@@ -63,8 +73,8 @@ _help() {
6373
msg "starts vncserver at port 1 with name as UDROID"
6474
msg
6575
msg "Options:"
66-
msg " -h | --help to show this messege"
67-
msg " -p | --port to set the port to use"
76+
msg " -h, --help to show this messege"
77+
msg " -p, --port to set the port to use"
6878
msg " --novnc to start novnc server!"
6979
}
7080
_msg_stopvnc() {
@@ -175,5 +185,19 @@ function on_startup() {
175185

176186
function _init() {
177187
on_startup
178-
179188
}
189+
190+
case $(basename "$0") in
191+
udroid_service_exec)
192+
service_exec; exit 0;;
193+
udroid_startvnc|startvnc)
194+
startvnc; exit 0 ;;
195+
udroid_stopvnc|stopvnc)
196+
stopvnc; exit 0;;
197+
esac
198+
199+
if [ $# -gt 0 ]; then
200+
case $1 in
201+
*) msg "TODO" ;;
202+
esac
203+
fi

0 commit comments

Comments
 (0)