Skip to content

Commit 14a4ef4

Browse files
andre2308cniweb
authored andcommitted
Updated the TMPFS and Z-Wave Installation (openhab#134)
* Update TMPFS Now it runs without Admin Password * Not longer Needed * Not longer needed * Update README.ME to new TMPF Version * Update README.md Made some modifications for TMPFS * Updated the TMPFS and Z-Wave Installation Made it choiceable on Installation. openhab#131 * Changes * Updated * Fix Sed on Install Fix Sed Failure and Cleaned TMPFS script
1 parent 5d00c69 commit 14a4ef4

File tree

9 files changed

+159
-148
lines changed

9 files changed

+159
-148
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,20 @@ to
7777

7878
`chown root.uucp /run/lock || true`
7979

80-
For Z-Wave and Devices that use `dev/ttyACM0 or dev/ttyACM1` will at install a script copy to `/usr/local/etc/rc.d` that will execute install or on Boot.
80+
If you want you can Install a Script for Z-Wave and Devices that use `dev/ttyACM0 or dev/ttyACM1` at install a script is copy to `/usr/local/etc/rc.d` that will execute on install and at booting the Synology.
8181
This exec on the Port´s `chmod 777`. And load some USB Kernelmodules.
82-
To make these it´s necessary to enter on Installation the Admin Password from DSM.
8382

84-
Also is on Install a TMPFS created, that stores the Logs and Peristance. This allow the HDD´s to hibernate.
83+
Also if you want you can Install a TMPFS-Filesystem, that stores the Logs and Peristance. This allow the HDD´s to hibernate.
8584
The TMPFS could found in the same Path you chose on Installation for the Configs.
86-
The TMPFS will backup on shutdown to folder `saved` and restore on boot to TMPFS and make some Links. To make these able, is a script copy on Install to `/usr/local/etc/rc.d`,
87-
for these action is the Admin Password from DSM requiered on install.
85+
The TMPFS will backup on shutdown to folder `saved` and restore on boot to TMPFS and make some Links. To make these able, is a script copy on Install to `/usr/local/etc/rc.d` this will run by setup and on shutdown or boot the synology. A Logfile for TMPFS is on the openHAB Config-Path you chosed on Install.
86+
87+
For these two options you have to check a Checkbox on Installation. If you let it empty is nothing changed. When you want it to change later you must run a update.
88+
89+
To Keep Peristance Running (it stops when TMPFS is full) you can install the EXEC-Binding and make a Thing with follow command
90+
`find "path to Config Dir you chosed on Install"/openHAB/userdata/logs/*.log1 -type f -delete` and run it periodly. This will delete old logs.
91+
92+
If you want to Backup the TMPFS periodly you can use the EXEC-Binding too.
93+
Create one Thing with follow command `cp -a -r -f /volume1/public/openHAB/tmpfs/userdata /volume1/public/openHAB/saved/`. You can add it to a rule, that will run the command every Day.
8894

8995
## Forum
9096

WIZARD_UIFILES/install_uifile

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,19 @@
4040
}]
4141
}]
4242
},{
43-
"step_title": "Admin password",
43+
"step_title": "TMPFS and Z-Wave",
4444
"items": [{
45-
"type": "password",
46-
"desc": "Please Enter Admin Password to install a TMPFS Filesystem. This will allow to pause the HDD. And it also install a script for Z-Wave when it´s necessary",
45+
"type": "multiselect",
46+
"desc": "Chose if you want to Install a TMPFS-Filesystem, that allow to pause the HDDs. And install a bootup script for Z-Wave. You can select one item or both or leave it empty to do nothing.",
4747
"subitems": [{
48-
"key": "pkgwizard_root_pwd",
49-
"desc": "Password",
50-
"validator": {
51-
"allowBlank": false,
52-
}
53-
}
48+
"key": "pkgwizard_tmpfs",
49+
"desc": "Install TMPFS",
50+
"defaultValue": false
51+
}, {
52+
"key": "pkgwizard_zwave",
53+
"desc": "Install Z-Wave",
54+
"defaultVaule": false
55+
}]
5456
}]
55-
}]
56-
}]
57+
}]
58+
}]

WIZARD_UIFILES/install_uifile_ger

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,19 @@
3939
}]
4040
}]
4141
},{
42-
"step_title": "Admin Passwort",
42+
"step_title": "TMPFS and Z-Wave",
4343
"items": [{
44-
"type": "password",
45-
"desc": "Bitte das Admin Passwort eingeben um ein TMPFS zu installieren, dies erm&oumlglicht das die Festplatten schlafen gehen können. Und falls es nötig ist wird ein Script zum erm&oumlglichen von Z-Wave installiert",
44+
"type": "multiselect",
45+
"desc": "Wähle ob du ein TMPFS-Filesystem installieren möchtest, dies ermöglicht die HDDs zu pausieren. Es kann auch ein Start Script für Z-Wave installiert werden. Du hast die Möglichkeit beides zu Wählen oder nur eines. Lass die Boxen leer wenn du nichts möchtest.",
4646
"subitems": [{
47-
"key": "pkgwizard_root_pwd",
48-
"desc": "Password",
49-
"validator": {
50-
"allowBlank": false,
51-
}
52-
}
47+
"key": "pkgwizard_tmpfs",
48+
"desc": "Installiere TMPFS",
49+
"defaultValue": false
50+
}, {
51+
"key": "pkgwizard_zwave",
52+
"desc": "Installiere Z-Wave",
53+
"defaultVaule": false
54+
}]
5355
}]
54-
}]
55-
}]
56+
}]
57+
}]

WIZARD_UIFILES/uninstall_uifile

Lines changed: 0 additions & 15 deletions
This file was deleted.

WIZARD_UIFILES/uninstall_uifile_ger

Lines changed: 0 additions & 15 deletions
This file was deleted.

WIZARD_UIFILES/upgrade_uifile

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,19 @@
3939
}]
4040
}]
4141
},{
42-
"step_title": "Admin password",
42+
"step_title": "TMPFS and Z-Wave",
4343
"items": [{
44-
"type": "password",
45-
"desc": "Please Enter Admin Password to install a TMPFS Filesystem. This will allow to pause the HDD. And it also install a script for Z-Wave when it´s necessary",
44+
"type": "multiselect",
45+
"desc": "Chose if you want to Install a TMPFS-Filesystem, that allow to pause the HDDs. And install a bootup script for Z-Wave. You can select one item or both or leave it empty to do nothing.",
4646
"subitems": [{
47-
"key": "pkgwizard_root_pwd",
48-
"desc": "Password",
49-
"validator": {
50-
"allowBlank": false,
51-
}
52-
}
47+
"key": "pkgwizard_tmpfs",
48+
"desc": "Install TMPFS",
49+
"defaultValue": false
50+
}, {
51+
"key": "pkgwizard_zwave",
52+
"desc": "Install Z-Wave",
53+
"defaultVaule": false
54+
}]
5355
}]
54-
}]
55-
}]
56-
56+
}]
57+
}]

WIZARD_UIFILES/upgrade_uifile_ger

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,19 @@
3939
}]
4040
}]
4141
},{
42-
"step_title": "Admin Passwort",
42+
"step_title": "TMPFS and Z-Wave",
4343
"items": [{
44-
"type": "password",
45-
"desc": "Bitte das Admin Passwort eingeben um ein TMPFS zu installieren, dies erm&oumlglicht das die Festplatten schlafen gehen können. Und falls es nötig ist wird ein Script zum erm&oumlglichen von Z-Wave installiert",
44+
"type": "multiselect",
45+
"desc": "Wähle ob du ein TMPFS-Filesystem installieren möchtest, dies ermöglicht die HDDs zu pausieren. Es kann auch ein Start Script für Z-Wave installiert werden. Du hast die Möglichkeit beides zu Wählen oder nur eines. Lass die Boxen leer wenn du nichts möchtest.",
4646
"subitems": [{
47-
"key": "pkgwizard_root_pwd",
48-
"desc": "Password",
49-
"validator": {
50-
"allowBlank": false,
51-
}
52-
}
47+
"key": "pkgwizard_tmpfs",
48+
"desc": "Installiere TMPFS",
49+
"defaultValue": false
50+
}, {
51+
"key": "pkgwizard_zwave",
52+
"desc": "Installiere Z-Wave",
53+
"defaultVaule": false
54+
}]
5355
}]
54-
}]
55-
}]
56-
56+
}]
57+
}]

package.tgz

-9 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)