Skip to content

Commit 12e5825

Browse files
modified --help
1 parent b041a3e commit 12e5825

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

etc/scripts/hippo/hippo.sh

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -145,20 +145,24 @@ function __force_uprade_hippo()
145145

146146
function __help()
147147
{
148-
msg "hippo - termux Version ${version}"
148+
msg "hippo - termux Version ${version} by saicharankandukuri"
149149
msg "A bash script to make basic action(login, vncserver) easier for ubuntu-on-android project"
150150
msg
151151
msg "Usage ${0} [options]"
152152
msg
153153
msg "Options:"
154154
msg "\e[1;34m"
155-
msg "--install To try installing hippo"
156-
msg "--help to display this message"
157-
msg "--enable-dbus To start terminal session with dbus enabled"
158-
# msg "startvnc To start hippo vncserver"
159-
# msg "stopvnc To stop hippo vncserver"
160-
msg "------------------" #SOCIAL_MEDIA link goes here
161-
msg "Join the community and leave at DISCORD -> $SOCIAL_PLATFORM"
155+
msg "--install To try installing hippo"
156+
msg "--help To display this message"
157+
msg "--enable-dbus To start terminal session with dbus enabled"
158+
msg "--force-upgrade To reinstall this script of origin"
159+
msg "startvnc To start hippo vncserver"
160+
msg "stopvnc To stop hippo vncserver"
161+
msg "--enable-dbus-startvnc To start vnc with dbus"
162+
msg "------------------"#links goes here
163+
msg "for additional documentation see: https://github.com/RandomCoderOrg/ubuntu-on-android#basic-usage"
164+
msg "report issues and feature requests at: https://github.com/RandomCoderOrg/ubuntu-on-android/issues"
165+
msg "Join the community at DISCORD -> $SOCIAL_PLATFORM"
162166
msg "------------------"
163167
msg "\e[0m"
164168
}
@@ -179,7 +183,7 @@ function _lauch_or_install()
179183
sleep 4
180184
clear
181185
echo -e "Now You can launch your ubuntu 21.04 with command \e[1;32mhippo\e[0m"
182-
# echo -e "use hippo --help for more option and comming up features"
186+
echo -e "use hippo --help for more option and comming up features"
183187
fi
184188
else
185189
#######################################################################################################
@@ -206,9 +210,9 @@ if [ $# -ge 1 ]; then
206210
upgrade) __upgrade;;
207211

208212
--force-upgrade) __force_uprade_hippo;;
209-
--enable-dbus) shift 1; _lauch_or_install --bind /dev/null:/proc/sys/kernel/cap_last_cap ;;
210-
"--enable-dbus-startvnc") shift 1; _lauch_or_install --bind /dev/null:/proc/sys/kernel/cap_last_cap -- startvnc ;;
211-
"--enable-dbus-stopvnc") shift 1; _lauch_or_install --bind /dev/null:/proc/sys/kernel/cap_last_cap -- stopvnc ;;
213+
--enable-dbus) shift 1; _lauch_or_install --bind /dev/null:/proc/sys/kernel/cap_last_cap "$@" ;;
214+
"--enable-dbus-startvnc") shift 1; _lauch_or_install --bind /dev/null:/proc/sys/kernel/cap_last_cap -- startvnc "$@" ;;
215+
"--enable-dbus-stopvnc") shift 1; _lauch_or_install --bind /dev/null:/proc/sys/kernel/cap_last_cap -- stopvnc "$@" ;; # no use
212216
--install) _lauch_or_install;;
213217
--help) __help;;
214218

@@ -217,7 +221,7 @@ if [ $# -ge 1 ]; then
217221
proot-distro login hippo --no-kill-on-exit -- startvnc
218222
else
219223
echo -e "This command is supposed to run after installing hippo"
220-
# echo -e "Use \e[1;32mhippo --install\e[0m install"
224+
echo -e "Use \e[1;32mhippo --install\e[0m install"
221225
echo -e "\e[32mError:\e[0m Hippo not found"
222226
fi
223227
;;
@@ -227,7 +231,7 @@ if [ $# -ge 1 ]; then
227231
proot-distro login hippo --no-kill-on-exit -- stoptvnc
228232
else
229233
echo -e "This command is supposed to run after installing hippo"
230-
# echo -e "Use \e[1;32mhippo --install\e[0m install"
234+
echo -e "Use \e[1;32mhippo --install\e[0m install"
231235
echo -e "\e[32mError:\e[0m Hippo not found"
232236
fi
233237
;;

0 commit comments

Comments
 (0)