blob: 9155aed7e3794452f9caaea7c5f134f78409255e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
function pacman_wait {
if [ -f /var/lib/pacman/db.lck ]
then
echo "Pacman is running and must quit before continuing."
echo " Waiting for pacman to quit..."
while [ -f /var/lib/pacman/db.lck ]
do
sleep 5
done
fi
}
pacman_wait
pacman-db-upgrade &
#remove pacman.cron from root crontab
grep -v "* * * * * /usr/bin/bash /usr/MythVantage/bin/pacman.cron" /var/spool/cron/root > /var/spool/cron/root2
mv /var/spool/cron/root2 /var/spool/cron/root
echo "root" >> /var/spool/cron/cron.update
|