Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull #1

Merged
merged 15 commits into from
Oct 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[submodule "bootstrap"]
path = bootstrap
url = https://github.com/samtap/fang-hacks
branch = bootstrap
[submodule "data"]
path = data
url = https://github.com/samtap/fang-hacks.git
branch = xf-data
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Collection of modifications for the XiaoFang WiFi Camera

**For questions, support and collaboration please join us on gitter. The discord channel is not used anymore.**

[![Join the chat at https://gitter.im/samtap/fang-hacks](https://badges.gitter.im/samtap/fang-hacks.svg)](https://gitter.im//fang-hacks/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

## General usage

Download an sd-card image from the [releases](https://github.com/samtap/fang-hacks/releases) page or follow the manual steps below.
Expand Down Expand Up @@ -56,6 +60,5 @@ By default the following services are enabled:
- A script controls the IR filter and LEDs
- Manage the device via the status page ```http://device-ip/cgi-bin/status```

## Support
For questions, suggestions or just general discussion, please join #fanghacks on irc.freenode.net
There's also a discord channel: https://discord.gg/xhRzpPn
## License
Any files in this repo that are not already licensed (i.e. my scripts and tools but *not* 3rd party binaries like busybox, dropbear et.al) are licensed under [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/).
12 changes: 6 additions & 6 deletions bootstrap/www/network
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ if [ -e "$CFG_CLIENT" ]; then
fi

cat << EOF
<!DOCTYPE html>
<html>
<head>
<title>Fang Hacks</title>
<head>
<style type="text/css">
body { background-color: #B0E0E6; font-family: verdana, sans-serif; }
.err { color: red; }
Expand Down Expand Up @@ -239,7 +239,7 @@ cat << EOF

window.onload = onLoad;
</script>

</head>
<body>
<h1>Network Settings</h1>
<hr/>
Expand Down Expand Up @@ -280,10 +280,10 @@ echo "<option value='' disabled selected style='display:none;'>Label</option>"

hidden=""
while read x; do
SSID=$(echo $x | cut -d' ' -f1)
ADDR=$(echo $x | cut -d' ' -f2)
ENC=$(echo $x | cut -d' ' -f3)
QUAL=$(echo $x | cut -d' ' -f4)
SSID=$(echo "$x" | cut -f1)
ADDR=$(echo "$x" | cut -f2)
ENC=$(echo "$x" | cut -f3)
QUAL=$(echo "$x" | cut -f4)
echo "<option id=\"${SSID}_OPT\">$SSID</option>"
hidden="$hidden
<input type='hidden' id=\"${SSID}_QUAL\" value=\"$QUAL\"/>
Expand Down
3 changes: 2 additions & 1 deletion bootstrap/www/scripts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ echo "Content-type: text/html"
echo ""
source func.cgi
cat << EOF
<!DOCTYPE html>
<html>
<head>
<title>Fang Hacks</title>
<head>
<style type="text/css">
body { background-color: #B0E0E6; font-family: verdana, sans-serif; }
.err { color: red; }
Expand All @@ -17,6 +17,7 @@ button, input[type=submit] { background-color: #ddeaff; }
.tbl th { text-align: left; vertical-align: top; font-weight: bold; padding: 10px 5px; border-style: solid; border-width: 1px; overflow: hidden; word-break: normal; }
.tbl td { padding: 10px 5px; border-style: solid; border-width: 1px; overflow: hidden; word-break: normal; }
</style>
</head>
<body>
<h1>Boot Scripts</h1>
<hr/>
Expand Down
4 changes: 2 additions & 2 deletions bootstrap/www/status
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ echo "Content-type: text/html"
echo ""

cat << EOF

<!DOCTYPE html>
<html>
<head>
<title>Fang Hacks</title>
Expand All @@ -17,7 +17,7 @@ button, input[type=submit] { background-color: #ddeaff; }
.tbl th { text-align: left; vertical-align: top; font-weight: bold; padding: 10px 5px; border-style: solid; border-width: 1px; overflow: hidden; word-break: normal; }
.tbl td { padding: 10px 5px; border-style: solid; border-width: 1px; overflow: hidden; word-break: normal; }
</style>
<head>
</head>
<body>
<div style="font-family: monospace, fixed; font-weight: bold;">
<span style=";color:#55f">____</span><span>&#160;&#160;</span><span style=";color:#55f">__.__</span><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><span style=";color:#00a">________</span><span style=";color:#aaa">___</span><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</span><br />
Expand Down
1 change: 1 addition & 0 deletions data
Submodule data added at 0d2913
Empty file removed data/.resize
Empty file.
1 change: 0 additions & 1 deletion data/bin/ash

This file was deleted.

Binary file removed data/bin/busybox
Binary file not shown.
1 change: 0 additions & 1 deletion data/bin/cat

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/chgrp

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/chmod

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/chown

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/cp

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/date

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/dd

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/df

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/dmesg

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/dnsdomainname

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/echo

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/egrep

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/false

This file was deleted.

3 changes: 0 additions & 3 deletions data/bin/fang_login

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/fgrep

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/fsync

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/getopt

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/grep

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/gunzip

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/gzip

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/hostname

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/iostat

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/kill

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/ln

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/login

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/ls

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/mkdir

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/mknod

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/mktemp

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/more

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/mount

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/mt

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/mv

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/netstat

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/nice

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/pidof

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/ping

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/ping6

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/printenv

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/ps

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/pwd

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/rm

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/rmdir

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/run-parts

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/sed

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/setserial

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/sh

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/sleep

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/stty

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/su

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/sync

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/tar

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/touch

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/true

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/umount

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/uname

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/usleep

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/vi

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/watch

This file was deleted.

1 change: 0 additions & 1 deletion data/bin/zcat

This file was deleted.

19 changes: 0 additions & 19 deletions data/etc/hostapd.conf

This file was deleted.

5 changes: 0 additions & 5 deletions data/etc/profile

This file was deleted.

49 changes: 0 additions & 49 deletions data/etc/scripts/00-stop-cloud

This file was deleted.

Loading