#!/bin/bash echo "Update started on $(date)" >> /var/log/autoupdate.log emerge --sync >> /var/log/autoupdate.log emerge -uv --deep --with-bdeps=y @world >> /var/log/autoupdate.log date >> /var/log/autoupdate.log echo "Update terminated on $(date)" >> /var/log/autoupdate.log