236 |
|
|
237 |
if [[ -f /.dist-upgrade ]] |
if [[ -f /.dist-upgrade ]] |
238 |
then |
then |
239 |
|
# busybox gets installed before the new busybox initscripts |
240 |
|
# and the syslog daemon gets started at the wrong runlevels (rc3.d instead of rc.sysinit) |
241 |
|
# these runlevel symlinks will be deleted by the prune-orphaned-files script |
242 |
|
# and syslogd will be left never started. so add syslogd here |
243 |
|
rc-config add syslogd |
244 |
|
|
245 |
# array of wireless opts |
# array of wireless opts |
246 |
WIRELESS_OPTS=( WIRELESS_BITRATE WIRELESS_CHANNEL WIRELESS_ESSID WIRELESS_FREQUENCY WIRELESS_MODE WIRELESS_NICK WIRELESS_AUTH_MODE WIRELESS_KEY_LENGTH WIRELESS_KEY WIRELESS_KEY_ASCII WIRELESS_WPA_DRIVER ) |
WIRELESS_OPTS=( WIRELESS_BITRATE WIRELESS_CHANNEL WIRELESS_ESSID WIRELESS_FREQUENCY WIRELESS_MODE WIRELESS_NICK WIRELESS_AUTH_MODE WIRELESS_KEY_LENGTH WIRELESS_KEY WIRELESS_KEY_ASCII WIRELESS_WPA_DRIVER ) |
247 |
|
|
299 |
|
|
300 |
if [[ -f /.dist-upgrade ]] |
if [[ -f /.dist-upgrade ]] |
301 |
then |
then |
302 |
echo "preparing a reboot in 60 seconds ..." |
echo "preparing for a reboot in 60 seconds ..." |
303 |
# reboot via cronjob |
# reboot via cronjob |
304 |
[[ ! -d /var/spool/cron/crontabs ]] && install -d /var/spool/cron/crontabs |
[[ ! -d /var/spool/cron/crontabs ]] && install -d /var/spool/cron/crontabs |
305 |
# setup a proper cronjob |
# setup a proper cronjob |
308 |
# fake mageupgrade to fix annoying error messages |
# fake mageupgrade to fix annoying error messages |
309 |
if [[ ! -x /sbin/mageupgrade ]] |
if [[ ! -x /sbin/mageupgrade ]] |
310 |
then |
then |
311 |
ln -snf /bin/true /sbin/mageupgrade |
echo '#!/bin/sh' > /sbin/mageupgrade |
312 |
|
echo 'exit 0' >> /sbin/mageupgrade |
313 |
|
chmod +x /sbin/mageupgrade |
314 |
echo "* * * * * rm /sbin/mageupgrade" >> ${tmp} |
echo "* * * * * rm /sbin/mageupgrade" >> ${tmp} |
315 |
fi |
fi |
316 |
echo "* * * * * crontab -r && reboot -f" >> ${tmp} |
echo "* * * * * crontab -r && reboot -f" >> ${tmp} |