Closed richb-hanover closed 2 years ago
Thanks. Yes I was planning to put this into main. Would you have tips for doing so? My 'main' branch has generated a lot of interest I believe from what GitHub tells me, so I need to be careful to keep that in tact for those who use it.
Could I simply rename 'CAKE-autorate' to 'main' and then rename 'main' to something like 'CAKE-autorate light', or should I merge? I am also not sure what to do with the other versions in the different branches.
How can I best keep 'main' and the others in tact?
@moeller0 any thoughts in this respect?
I am no expert on these matters, but as long as you keep branches (so not delete them) moving stuff from one branch to the next should be acceptable, just make a notice on the front page about delegating current "main" to "historic_main" (or what ever you call it) and moving CAKE-autorate to the front/main.
# Retrieve required packages opkg update opkg install bash
Here I would use something like:
# Retrieve required packages
# Uncomment the next two lines to update the opkg pakage list and install bash
# make sure you have enough space available
#opkg update
# pkg install bash
for the simple reason that this has side-effects that can cause issues on routers tight on storage/memory so users should consciously perform that operation, no?
@moeller0 - good points.
But bash
seems to be required (I couldn't just use sh ./CAKE-autorate.sh
- I don't know why).
Perhaps an investigation into the reason for these error messages when using sh ...
could remove the requirement to install bash
entirely... (I know there are a few differences between the busybox ash
and the standard bash
shell...)
Bash was an intentional design choice. Ash is just too limited - no arrays, no integer maths, etc. My script in 'main' at the moment is ash + awk, but it is horrible to read and work with.
OK. Totally fine. But that makes installing bash
a requirement.
I have renamed the repository and branches. Please let me know if you see any issues with the renaming.
The repository is now 'CAKE-autorate' and the branches are:
When I get time I will rework the readme for the new bash implementation in 'main' (and the readme files for the other branches).
Excellent! To expand the second bullet point in the original note
grep _VERSION CAKE-autorate.sh
Create a CHANGELOG.md that documents the changes to the repo. I think they're most effective when they have the form:
Version - Date
Optional sentence or two describing the intent of this change
- first change
- second change
- ... etc...
Thanks!
For the changelog, I think if you name you commits reasonably just looking at the commit link would do, currently however the commit titles seem not expressive enough for that.
I updated the script in the original post to install the current (as of 20 Mar 2022) CAKE-autorate.sh. The steps in the README do not actually install the files into /root/CAKE-autorate/...
Thanks @richb-hanover. I fixed the readme. Do you know whether it is necessary to 'chmod +x ./config.sh'?
chmod +x ./config.sh
is necessary. I haven't taken the time to do the research.[ -d CAKE-autorate ] || mkdir CAKE-autorate
because then copy-pastes always work, or it can become a script.Thanks!
CAKE-autorate.sh seems good enough for people to test. A couple thoughts for making it easier for people to try it:
defaults.sh
toconfig.sh
(Oh - you just did!)