Changed default speeds on PWM to 6000/24000, and clean up old cookies
This commit is contained in:
6
scripts/delete-cookies.py
Normal file
6
scripts/delete-cookies.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
import sqlite3
|
||||||
|
|
||||||
|
db = sqlite3.connect('/home/pi/.config/chromium/Default/Cookies')
|
||||||
|
cur = db.cursor()
|
||||||
|
cur.execute("DELETE FROM cookies WHERE creation_utc < 13240000000000000")
|
||||||
@@ -154,15 +154,11 @@ if [ ! -e /etc/cron.d/reboot ]; then
|
|||||||
cp ./scripts/cron_reboot_logrotate /etc/cron.reboot/logrotate
|
cp ./scripts/cron_reboot_logrotate /etc/cron.reboot/logrotate
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##########################################
|
# Delete some cookies that were left behind in older images
|
||||||
# Begin one-time cleanup tasks for 1.0.7
|
chmod +x ./scripts/delete-cookies.py
|
||||||
##########################################
|
./scripts/delete-cookies.py
|
||||||
|
|
||||||
# Delete cached login data
|
# Get rid of some old files that were left behind in older images
|
||||||
rm -rf "/home/pi/.config/chromium/Login Data"
|
|
||||||
rm -rf "/home/pi/.config/chromium/Login Data.journal"
|
|
||||||
|
|
||||||
# Get rid of some old files that were left behind
|
|
||||||
rm -rf /home/pi/hostinfo.txt
|
rm -rf /home/pi/hostinfo.txt
|
||||||
rm -rf /home/pi/ssidinfo.txt
|
rm -rf /home/pi/ssidinfo.txt
|
||||||
rm -rf /home/Downloads/bbctrl-20200415.json
|
rm -rf /home/Downloads/bbctrl-20200415.json
|
||||||
@@ -174,10 +170,6 @@ rm -rf /home/bbmc/favicon.ico
|
|||||||
# Force a logrotate to get everything into a good state
|
# Force a logrotate to get everything into a good state
|
||||||
logrotate -f /etc/logrotate.conf
|
logrotate -f /etc/logrotate.conf
|
||||||
|
|
||||||
##########################################
|
|
||||||
# End one-time cleanup tasks for 1.0.7
|
|
||||||
##########################################
|
|
||||||
|
|
||||||
sync
|
sync
|
||||||
|
|
||||||
if $REBOOT; then
|
if $REBOOT; then
|
||||||
|
|||||||
@@ -11,8 +11,8 @@
|
|||||||
"tool-enable-mode": "disabled",
|
"tool-enable-mode": "disabled",
|
||||||
"tool-direction-mode": "disabled",
|
"tool-direction-mode": "disabled",
|
||||||
"tool-type": "PWM Spindle",
|
"tool-type": "PWM Spindle",
|
||||||
"min-spin": 0,
|
"min-spin": 6000,
|
||||||
"max-spin": 255
|
"max-spin": 24000
|
||||||
},
|
},
|
||||||
"pwm-spindle": {
|
"pwm-spindle": {
|
||||||
"pwm-min-duty": 1,
|
"pwm-min-duty": 1,
|
||||||
@@ -230,8 +230,8 @@
|
|||||||
"tool-reversed": false,
|
"tool-reversed": false,
|
||||||
"tool-enable-mode": "disabled",
|
"tool-enable-mode": "disabled",
|
||||||
"tool-direction-mode": "disabled",
|
"tool-direction-mode": "disabled",
|
||||||
"min-spin": 0,
|
"min-spin": 6000,
|
||||||
"max-spin": 255
|
"max-spin": 24000
|
||||||
},
|
},
|
||||||
"pwm-spindle": {
|
"pwm-spindle": {
|
||||||
"pwm-min-duty": 1,
|
"pwm-min-duty": 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user