Skip to content

Commit a48b176

Browse files
committed
revamp st 1
1 parent b3c1ddb commit a48b176

File tree

3 files changed

+66
-12
lines changed

3 files changed

+66
-12
lines changed

etc/scripts/pulseeffects/install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
# shout() pring messege in a good way with some lines
1515
# lshout() print messege in a standard way
1616

17-
die () { echo -e "${RED}Error ${*}${RST}";exit 1 ;:;}
18-
warn () { echo -e "${RED}Error ${*}${RST}";:;}
19-
shout () { echo -e "${DC}-----";echo -e "${*}";echo -e "-----${RST}";:; }
20-
lshout () { echo -e "${DC}";echo -e "${*}";echo -e "${RST}";:; }
17+
die () { echo -e "${RED}!! ${*}${RST}";exit 1 ;:;}
18+
warn () { echo -e "${RED}?? ${*}${RST}";:;}
19+
shout () { echo -e "${DS}=> ${*}${RST}";:; }
20+
lshout () { echo -e "${DC}-> ${*}${RST}";:; }
2121

2222
###################################################################
2323
# 1. Update apt indexs

etc/scripts/udroid/udroid-proot.sh

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#!/usr/bin/env bash
2+
3+
# Udroid manager to work inside proot environment
4+
#
5+
6+
_init()
7+
{
8+
:
9+
}
10+
######
11+
_set()
12+
{
13+
:
14+
}
15+
16+
_enable()
17+
{
18+
:
19+
}
20+
21+
_start()
22+
{
23+
:
24+
}
25+
26+
_createuser()
27+
{
28+
:
29+
}
30+
######
31+
32+
_start_vnc()
33+
{
34+
:
35+
}
36+
37+
_stop_vnc()
38+
{
39+
:
40+
}
41+
42+
######
43+
44+
_start_services()
45+
{
46+
:
47+
}
48+
49+
_stop_services()
50+
{
51+
:
52+
}
53+
54+
######

etc/scripts/udroid/udroid.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ HIPPO_SCRIPT_FILE="${SCRIPT_DIR}/udroid.sh"
2828
# lshout() print messege in a standard way
2929
# msg() print's normal echo
3030

31-
die () { echo -e "${RED}Error ${*}${RST}";exit 1 ;:;}
32-
warn () { echo -e "${RED}Error ${*}${RST}";:;}
33-
shout () { echo -e "${DS}////////";echo -e "${*}";echo -e "////////${RST}";:; }
34-
lshout () { echo -e "${DC}";echo -e "${*}";echo -e "${RST}";:; }
31+
die () { echo -e "${RED}!! ${*}${RST}";exit 1 ;:;}
32+
warn () { echo -e "${RED}?? ${*}${RST}";:;}
33+
shout () { echo -e "${DS}=> ${*}${RST}";:; }
34+
lshout () { echo -e "${DC}-> ${*}${RST}";:; }
3535
msg () { echo -e "\e[38;5;228m ${*} \e[0m" >&2 ;:; }
3636

3737

@@ -66,12 +66,14 @@ function __verify_bin_path()
6666
{
6767
BINPATH="${SHELL}"
6868

69-
if [ -z "$BINPATH" ]; then
69+
if [ -n "$BINPATH" ]; then
7070
if [ "$BINPATH" != "/data/data/com.termux/files/*" ]; then
7171
msg "This has to be done inside termux environment"
7272
die "\$SHELL != $BINPATH"
7373
exit 1
7474
fi
75+
else
76+
warn "SHELL value is empty.."
7577
fi
7678
}
7779

@@ -203,9 +205,7 @@ function __split_tarball_handler()
203205
die "Could not find script in tmp directory: This attribute is not for manuall entry"
204206
fi
205207

206-
if $SPLIT_TARBALL_FS; then
207-
:
208-
else
208+
if ! $SPLIT_TARBALL_FS; then
209209
cp "$target_plugin" "$SCRIPT_DIR/udroid.sh"
210210
shift; _lauch_or_install "$@"
211211
fi

0 commit comments

Comments
 (0)