In short :
- /etc/cron.daily/apt is moved to /usr/lib/apt/maintenance.sh and I removed the random_sleep function
- /etc/cron.daily/apt request to "at" to launch /usr/lib/apt/maintenance.sh after a random delay
There is another benefit : we are checking for battery operation only once.
I propose the attached patch.
In short : apt/maintenance .sh and I removed the random_sleep function apt/maintenance .sh after a random delay
- /etc/cron.daily/apt is moved to /usr/lib/
- /etc/cron.daily/apt request to "at" to launch /usr/lib/
There is another benefit : we are checking for battery operation only once.
The package will require a dependency to "at".