Skip to content

Commit 036c6af

Browse files
committed
Installer fixes
1 parent fc4b7d9 commit 036c6af

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

jailbreak-installer.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh
22
PKGVER=v4
3+
iv2sh SetActiveTask `pidof bookshelf.app` 0
34
if [ -e /mnt/secure/su ]; then
45
dialog 2 "" "Do you wish to remove root?" "Yes" "No"
56
if [ $? != 1 ]; then

services-installer.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ PVER=`cat /mnt/secure/.pkgver`
66

77
if [ "$PVER" != "" ] && [ "$PVER" != "$PKGVER" ]; then
88
dialog 1 "" "Version $PVER already installed" "Update to $PKGVER" "Cancel" "Uninstall"
9-
if [ $? == 3 ]; then
9+
st=$?
10+
if [ $st == 3 ]; then
1011
chattr -i /mnt/secure/runonce/*.sh
11-
rm -rf /mnt/secure/runonce/*.sh /mnt/secure/bin /mnt/secure/etc
12+
rm -rf /mnt/secure/runonce/*.sh /mnt/secure/bin /mnt/secure/etc /mnt/secure/.pkgver
1213
settings=/mnt/ext1/system/config/settings/settings.json
1314
rm -f $settings
1415
mv -f $settings.old $settings
@@ -18,12 +19,14 @@ if [ "$PVER" != "" ] && [ "$PVER" != "$PKGVER" ]; then
1819
reboot
1920
fi
2021
exit 0
22+
elif [ $st == 2 ]; then
23+
exit 0
2124
fi
2225
else
2326
dialog 1 "" "Do you wish to install $PKGVER?" "Yes" "No"
24-
fi
25-
if [ $? != 1 ]; then
26-
exit 0
27+
if [ $? != 1 ]; then
28+
exit 0
29+
fi
2730
fi
2831
echo $PKGVER > /mnt/secure/.pkgver
2932
mkdir -p /mnt/ext1/public_html
@@ -97,7 +100,7 @@ cat <<_EOF > $rootset
97100
"storage" : ["/mnt/ext1/rootpassword.txt, password"],
98101
}
99102
_EOF
100-
for n in /mnt/secure/init.d/*.sh; do
103+
for n in /mnt/secure/etc/init.d/*.sh; do
101104
desc="$(head -2 $n | tail -1)"
102105
if [ "${desc:0:2}" != "##" ]; then
103106
continue

su.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ int main(int argc, char **argv) {
3333
int fd = open("/proc/self/mem", O_RDWR);
3434
char buf[4] = "/lib";
3535
for (int i = 0; !memcmp(buf, "/lib", 4); i++) {
36-
//lseek(fd, (off_t)(unsigned int)pp, SEEK_SET);
37-
//write(fd, us, strlen(us) + 1);
3836
pwrite(fd, us, strlen(us) + 1, (off_t)(unsigned)pp);
3937
if (!(i&0xff))
4038
pread(sudo, buf, 4, pp-map);

0 commit comments

Comments
 (0)