Skip to content

Commit

Permalink
[fix #5] Merge sshtoggled with main tweak (#6)
Browse files Browse the repository at this point in the history
[fix #5] Merge sshtoggled with main tweak
  • Loading branch information
Praseetha-KR authored Oct 13, 2019
2 parents 55f9d79 + 1192170 commit 3eac458
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 133 deletions.
17 changes: 4 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,17 @@

### Install

`sshtoggle` tweak also has `sshtoggled` daemon dependency.
Get the latest version from [releases](https://github.com/Praseetha-KR/sshtoggle/releases) page

Get the latest version for both tweak & daemon from the [releases](https://github.com/Praseetha-KR/sshtoggle/releases) page

```bash
```zsh
$ ssh root@<device_ip>

# daemon
curl -sSL https://github.com/Praseetha-KR/sshtoggle/releases/download/0.0.2/in.imagineer.sshtoggled_0.0.2_iphoneos-arm.deb?raw=true -O
curl -sSL https://github.com/Praseetha-KR/sshtoggle/releases/download/0.0.4/in.imagineer.sshtoggle_0.0.4_iphoneos-arm.deb?raw=true -O

dpkg -i in.imagineer.sshtoggled_0.0.2_iphoneos-arm.deb\?raw\=true
dpkg -i in.imagineer.sshtoggle_0.0.4_iphoneos-arm.deb\?raw\=true

launchctl load -w /Library/LaunchDaemons/in.imagineer.sshtoggled.plist


# tweak
curl -sSL https://github.com/Praseetha-KR/sshtoggle/releases/download/0.0.2/in.imagineer.sshtoggle_0.0.2_iphoneos-arm.deb?raw=true -O

dpkg -i in.imagineer.sshtoggle_0.0.2_iphoneos-arm.deb\?raw\=true

killall -9 backboardd
```

Expand Down
4 changes: 0 additions & 4 deletions scripts/compile.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/bin/bash
set -eux

cd sshtoggled
make package
cd ..

cd sshtoggle
make package
cd ..
Expand Down
4 changes: 0 additions & 4 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/bin/bash
set -eux

cd sshtoggled
make package install
cd ..

cd sshtoggle
make package install
cd ..
Expand Down
7 changes: 0 additions & 7 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
#!/bin/bash

cd sshtoggled
rm -rf .theos
rm -rf packages
make package FINALPACKAGE=1
# make install
cd ..

cd sshtoggle
rm -rf .theos
rm -rf packages
Expand Down
5 changes: 5 additions & 0 deletions sshtoggle/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ sshtoggle_FILES = Tweak.xm
sshtoggle_CFLAGS = -fobjc-arc

include $(THEOS_MAKE_PATH)/tweak.mk
SUBPROJECTS += sshtoggled
SUBPROJECTS += sshtogglepreferences
include $(THEOS_MAKE_PATH)/aggregate.mk

after-install::
install.exec "launchctl unload /Library/LaunchDaemons/in.imagineer.sshtoggled.plist"
install.exec "launchctl load -w /Library/LaunchDaemons/in.imagineer.sshtoggled.plist"
4 changes: 2 additions & 2 deletions sshtoggle/control
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: in.imagineer.sshtoggle
Name: sshtoggle
Pre-Depends:
Depends: mobilesubstrate, in.imagineer.sshtoggled
Version: 0.0.3
Depends: mobilesubstrate
Version: 0.0.4
Architecture: iphoneos-arm
Description: A tweak to start/stop SSH daemon
Maintainer: Praseetha KR <[email protected]>
Expand Down
6 changes: 0 additions & 6 deletions sshtoggled/Makefile → sshtoggle/sshtoggled/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,5 @@ sshtoggled_CFLAGS = -fobjc-arc
include $(THEOS_MAKE_PATH)/tool.mk
include $(THEOS_MAKE_PATH)/aggregate.mk

before-install::
install.exec "launchctl unload /Library/LaunchDaemons/in.imagineer.sshtoggled.plist"

internal-stage::
ldid -Sent.xml $(THEOS_STAGING_DIR)/usr/bin/sshtoggled

after-install::
install.exec "launchctl load -w /Library/LaunchDaemons/in.imagineer.sshtoggled.plist"
File renamed without changes.
2 changes: 1 addition & 1 deletion sshtoggled/main.m → sshtoggle/sshtoggled/main.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "NSTask.h"
#import "../NSTask.h"


static void startSSH(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo)
Expand Down
87 changes: 0 additions & 87 deletions sshtoggled/NSTask.h

This file was deleted.

9 changes: 0 additions & 9 deletions sshtoggled/control

This file was deleted.

0 comments on commit 3eac458

Please sign in to comment.