View Single Post
Posts: 2,292 | Thanked: 4,135 times | Joined on Apr 2010 @ UK
#39
Originally Posted by saponga View Post
Flopswap doesn't show me the "swap status" anymore. It used to works fine until last week. I don't know what i did but im getting this:
Code:
 $ sh /opt/flopswap/script/swapused.sh 
ublocks
/opt/flopswap/script/swapused.sh: line 38: arithmetic syntax error
All others commands are working ok. I already did uninstall and reinstall but no joy. Here is the line 38:
Code:
ubytes=$(($ublocks*512))
Could someone help me to debbug that ?
Thanks.
I had this before, it's due to busybox.

Out interest what's your uptime?

Two things to try if you can please.

Install bash and edit the script to run with "bash" instead of sh, this should make it work again.

Turn the script back to "sh" and reboot, this should also make the script work again.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post: