mcchas / g2h-camera-mods

Modifying the G2H camera with rtsp, security and not to call home
MIT License
107 stars 14 forks source link

deleted tar_app.sh, can this be solved? #25

Closed gielie closed 2 years ago

gielie commented 2 years ago

Hi, I needed to do a factory reset and dit like #22 but by accident I deleted the tar_app.sh and now it won't boot. Is there a way to restore this?

I can still telnet into the device, so if someone can post the file here I can copy it for the sd card back.

mcchas commented 2 years ago

@gielie the original contents of this file are lines 54-62 of the hostname script.

gielie commented 2 years ago

So I just have to create a file with that content?

#!/bin/sh cd /local chmod 777 * mkdir /tmp/out if [ -f "app.tar.xz" ]; then tar -xJf app.tar.xz -C /tmp/out fi

mcchas commented 2 years ago

Yes

gielie commented 2 years ago

your my hero, all fixed and up and running again,