Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
李政 committed Sep 21, 2016
1 parent 4a736e1 commit 24ee736
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 18 deletions.
Binary file modified aliddns.tar.gz
Binary file not shown.
9 changes: 9 additions & 0 deletions aliddns/install.sh
@@ -0,0 +1,9 @@
#!/bin/sh

cp -r /tmp/aliddns/* /koolshare/
chmod a+x /koolshare/scripts/aliddns_*

# add icon into softerware center
dbus set softcenter_module_aliddns_install=1
dbus set softcenter_module_aliddns_version=0.1
dbus set softcenter_module_aliddns_description="阿里云解析自动更新IP"
File renamed without changes
7 changes: 7 additions & 0 deletions aliddns/scripts/aliddns_config.sh
@@ -0,0 +1,7 @@
#!/bin/sh

if [ "`dbus get aliddns_enable`" = "1" ]; then
dbus delay aliddns_timer `dbus get aliddns_interval` /koolshare/scripts/aliddns_update.sh
else
dbus remove __delay__aliddns_timer
fi
File renamed without changes.
10 changes: 9 additions & 1 deletion webs/Module_aliddns.asp → aliddns/webs/Module_aliddns.asp
Expand Up @@ -48,10 +48,14 @@
<th>app secret</th>
<td><input type="password" id="aliddns_sk" value="<% dbus_get_def("aliddns_sk", ""); %>" class="input_ss_table"></td>
</tr>
<tr>
<th>检查周期</th>
<td><input type="text" style="width: 2.5em" id="aliddns_interval" value="<% dbus_get_def("aliddns_interval", "120"); %>" class="input_ss_table">s</td>
</tr>
<tr>
<th>域名</th>
<td>
<input type="text" id="aliddns_name" placeholder="子域名" value="<% dbus_get_def("aliddns_name", "home"); %>" class="input_ss_table"
<input type="text" style="width: 4em" id="aliddns_name" placeholder="子域名" value="<% dbus_get_def("aliddns_name", "home"); %>" class="input_ss_table"
>.<input type="text" id="aliddns_domain" placeholder="主域名" value="<% dbus_get_def("aliddns_domain", "example.com"); %>" class="input_ss_table">
</td>
</tr>
Expand Down Expand Up @@ -86,6 +90,10 @@ $(function () {
aliddns_sk: $('#aliddns_sk').val(),
aliddns_name: $('#aliddns_name').val(),
aliddns_domain: $('#aliddns_domain').val(),
aliddns_interval: $('#aliddns_interval').val(),
action_mode: ' Refresh ',
current_page: 'Module_aliddns.asp',
next_page: 'Module_aliddns.asp',
SystemCmd: 'aliddns_config.sh'
})
}).then(function () {
Expand Down
3 changes: 3 additions & 0 deletions build.sh
@@ -0,0 +1,3 @@
#!/bin/sh

tar zcvf aliddns.tar.gz aliddns
11 changes: 0 additions & 11 deletions install.sh

This file was deleted.

6 changes: 0 additions & 6 deletions scripts/aliddns_config.sh

This file was deleted.

0 comments on commit 24ee736

Please sign in to comment.