#!/bin/sh unique_append() { grep -qF "$1" "$2" || echo "$1" >> "$2" } unique_append \ "*/30 * * * * /usr/sbin/last_internet save"\ /etc/crontabs/root