What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Hi, I have diversion installed in my ax88, and it insists on managing my swapper file through the post_mount script. This is fine with me, *except* that it wants to run the swapon command at *every* post_mount invocation.. and I have 2 USB drives hooked, being the drive where the swapper file exists mounted first, so 'swapon' gets called normally twice (the second one being unnecessary and even possibly risky)..
If I code an 'if' sentence in front of the swapper activation to make sure swapon is only ran when the partition holding the swapfile is mounted, then everytime I run the 'diversion' command the 'if' gets removed... and the file restored to the way diversion wants it to be.. is there any way to avoid this and tell diversion for instance that I will manage swapper my own ?
Don't indent the swapon command. :)
Code:
# If device has swapfile, start swap
SWP="$(find $1/myswap.swp 2> /dev/null)"
if [ "$SWP" ]; then
logger -t Swap "Starting swap"
swapon /path/to/swapfile/myswap.swp # Swap file created by Diversion
fi
 
  • Like
Reactions: FTC
Don't indent the swapon command. :)
Code:
# If device has swapfile, start swap
SWP="$(find $1/myswap.swp 2> /dev/null)"
if [ "$SWP" ]; then
logger -t Swap "Starting swap"
swapon /path/to/swapfile/myswap.swp # Swap file created by Diversion
fi
That still will be "corrected" when the mount point for the device changes. That's usually the case when no label is given and two or more partitions are mounted.
I highly recommend labelling partitions for that sole reason. The Entware starting code in Diversion (or amtm if it installed it) is unaffected by device labels or names but the damned swap file is, for the reasons stated above.

The correction Diversion and amtm apply in such a case is to remove the swapon line and place it at the top of post-mount.
I'm sorry for causing headaches for a minority of users but for the greater good I have it coded my way ;)
 
Is this proper English?
For a new function [ :) ] I display this reminder and wonder if its phrasing is correct:
Remember to set your email password in c , it has been redacted for your security.
 
That still will be "corrected" when the mount point for the device changes. That's usually the case when no label is given and two or more partitions are mounted.
I highly recommend labelling partitions for that sole reason. The Entware starting code in Diversion (or amtm if it installed it) is unaffected by device labels or names but the damned swap file is, for the reasons stated above.

The correction Diversion and amtm apply in such a case is to remove the swapon line and place it at the top of post-mount.
I'm sorry for causing headaches for a minority of users but for the greater good I have it coded my way ;)
Ahhhh. I've only ever had one USB partition, so I've never run into this issue. Good to know.
 
Firefox by default doesn't trust certificates installed via Windows certificate trust store, you need to either import the certificate directly in Firefox or enable Windows certificate support.

You can enable this feature in about:config by this boolean value:

security.enterprise_roots.enabled

and set it to true.

Use only Firefox as in my business environment, Edge & MIE not supported. Changed the boolean value to "enabled", which on reading Firefox notes, a key requirement. Fingers crossed!! Thks
 
Is this proper English?
For a new function [ :) ] I display this reminder and wonder if its phrasing is correct:
Remember to set your email password in c , it has been redacted for your security.

"Remember to reconfigure your email's password in c, it has been redacted/removed for your account's security. "

I believe reconfigure is the appropriate word here because user have already done the configuration in the past.
 
If the swap file is already active the command is ignored.

Thanks for this comment. I had not been able to find this behavior documented and was not sure on whether a 'swapon' command when swapping was already enabled could somehow harm or be inefficient if for instance the swapping function was restarted in that case.
 
Don't indent the swapon command. :)
Code:
# If device has swapfile, start swap
SWP="$(find $1/myswap.swp 2> /dev/null)"
if [ "$SWP" ]; then
logger -t Swap "Starting swap"
swapon /path/to/swapfile/myswap.swp # Swap file created by Diversion
fi

Great! I may use this (note that my partitions are labeled)
 
"Remember to reconfigure your email's password in c, it has been redacted/removed for your account's security. "

I believe reconfigure is the appropriate word here because user have already done the configuration in the past.
I replace the password for obvious reason with "PUT YOUR PASSWORD HERE" and check it. If that text is found I prompt to change it.
So, this sounds right then?
"Remember to reconfigure your email's password in c, it has been redacted for your account's security."
 
I replace the password for obvious reason with "PUT YOUR PASSWORD HERE" and check it. If that text is found I prompt to change it.
So, this sounds right then?
"Remember to reconfigure your email's password in c, it has been redacted for your account's security."

To me yes, but English is not my first language so if you want, you can wait for native speakers to further recheck it.
 
To me yes, but English is not my first language so if you want, you can wait for native speakers to further recheck it.
Slight correction (email's, account's):
"Remember to reconfigure your emails password in c, it has been redacted for your accounts security."
 
Slight correction (email's, account's):
"Remember to reconfigure your emails password in c, it has been redacted for your accounts security."
This reminded me: I was reading out a username and password to my brother; I think it was the default credentials for his DLink router - and I said something like, “The username is admin, and the password is identical”. Then we scratched our heads why there was an error message until I discovered he typed in “admin” and “identical”
 
This reminded me: I was reading out a username and password to my brother; I think it was the default credentials for his DLink router - and I said something like, “The username is admin, and the password is identical”. Then we scratched our heads why there was an error message until I discovered he typed in “admin” and “identical”
Then you must've seen this video: The wifi password is four words all uppercase
 
Brilliant! First time I’ve had reason to laugh this week.
See you next week, same thread, different topic. Got to make that a habit.
 
It should be under Trusted Root Certificates named Pixelserv CA, IIRC.
Found it...certificate installed in the wrong place:eek: Used this Microsoft process to find the certificate location, checking all locations, then removed it.
1. Press Windows key + R to open the run command.
2. Type inetcpl.cpl to open the internet properties window.
3. Click on "content" tab and click "certificates".
4. All the available certificates will be listed there.
5. Locate the particular certificate that you are looking for and remove it.
Then I reinstalled via 192.168.50.2/ca.crt carefully following the instructions this time. As Firefox user, enabled "security.enterprise_roots.enabled" (as per @Asad Ali)...this not in the instructions? https://github.com/kvic-z/pixelserv...ificate#import-pixelserv-ca-on-client-devices

Thanks Everyone!!
 
Looks like a Firefox pop up. Look for the certificate named after your pixelserv-tls IP, it'll be registered as something like this: 192.168.1.2:443

In Firefox, the certs are viewable in Options / Privacy and Security. At the bottom of that page are the Certificates. It should be listed under Servers.
Found it here under Authorities, nothing in Servers for Pixelserv?
upload_2019-7-5_17-30-42.png


Tried 192.168.50.2:443 (I use the AX88U default addressing of 192.168.50.1...) but Firefox just gave error message of "the connection was reset"?
 
Slight correction (email's, account's):
"Remember to reconfigure your emails password in c, it has been redacted for your accounts security."
@Asad Ali was right, "emails" is plural, "email's" is possessive. Same with accounts vs account's. Not like most USizicstanians get it right either, and my sample size of other native English speakers from other countries is too small to judge.

Another if you're bored thing ... https://theoatmeal.com/comics/apostrophe
 
@Asad Ali was right, "emails" is plural, "email's" is possessive. Same with accounts vs account's. Not like most USizicstanians get it right either, and my sample size of other native English speakers from other countries is too small to judge.

Another if you're bored thing ... https://theoatmeal.com/comics/apostrophe
Lastly, when in doubt: DON'T use an apostrophe. Good guide!

English: It's all so complicated with its grammatical rules :D
I'm using this wording if it's all right with you all: Set your email password in c, it has been redacted for security reasons.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top