Support > User Customizations
unMENU 1.5 ... now available for download.
abeta:
I put it in the other thread. I did the following:
cd /boot/unmenu
cat <<EOF >101-unmenu_user_script_HDSentinel
#define USER_SCRIPT_LABEL HDSentinel
#define USER_SCRIPT_DESCR HDSentinel
/boot/scripts/HDSentinel
EOF
When it "works/doesn't crash" it doesn't display correctly for me, but neither did it in tthe older unmenu.
That said...any thoughts to putting an unmenu version somewhere on the page?
Joe L.:
--- Quote from: abeta on March 08, 2010, 04:13:39 PM ---That said...any thoughts to putting an unmenu version somewhere on the page?
--- End quote ---
The "version" of unMENU and its plug-in files is visible on the "About" page.
pfp:
--- Quote from: Joe L. on March 08, 2010, 02:59:49 PM ---Attached is a "package" conf file for "screen" that will work with this version of unMENU. Screen requires the additional utempter library, and this attached .conf file will download and install both the screen Slackware package and the required shared library too.
Have fun. When it installs it will complain that several files in /var are unwritable. Don't worry, unRAID does not need or use those files.
Joe L.
--- End quote ---
Cool.
Thank you!
abeta:
Thx Joe L. works great!
Joe L.:
--- Quote from: purko on March 08, 2010, 04:10:33 PM ---
--- Quote from: Joe L. on March 08, 2010, 03:32:23 PM ---Add two lines in the unmenu.conf file
MyHost=192.168.0.11
unRAIDHost = 192.168.0.11
--- End quote ---
1) Do the above variables refer to two different things?
--- End quote ---
Yes. One is used for the page that puts the stock "main" page in a window. The other for all the plug-in URLs.
--- Quote ---2) Do I have to be careful to have the spaces in the second line, but NOT to have spaces in the first line?
--- End quote ---
Either will work with or without spaces surrounding the "=" sign. the Capitalization is important, but not the spaces surrounding the equal sign.
Variables in the unmenu.conf file are parsed by the following "regular expression" :
/^([^# \t=]+)([\t ]*)(=)([\t ]*)(.+)/
Which says:
^ <- start of line
([^# \t=]+) <- One or more characters forming the variable name. The name must not contain a #, a space, a tab, or an equal sign
([\t ]*) <- zero or more space or tab characters
(=) <- an equal sign
([\t ]*) <- zero or more space or tab characters
(.+) <- one or more characters other than space or tab which would have been matched in the prior expression. This is the "value" of the variable.
The "=", in the two variables you added, can therefore have as many space or tab characters surrounding it as you like. The two variables must start on the left-most-column, but other than that, it is not too critical.
After a few minutes, regular expressions are immediately intuitive. 8) ;D
Joe L.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version