#!/bin/bash
#
#VERSION=1
#CHANGES="Initial Version"

# global variables #
BEROCONF=/usr/fallback/beroconf
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/fallback"

[ -f /usr/fallback/helper ] && source /usr/fallback/helper

# functions #
function log {
	content="${1}"
	prefix="[pkginst_core-modules_post]"

	if [ -z "${2}" ]; then
		echo "${prefix} $(date): ${content}"
	else
		if type -t permlog 2>&1 >/dev/null; then
			permlog "pkginst-core-modules-${2}" ${prefix} "${content}"
		else
			echo "${prefix} $(date): ${content}" | tee -a /usr/conf/permlog/pkg-install-core-modules-${2}.log
		fi
	fi
}

# remount rootfs
mount -oremount,ro /

# main #
echo "1" > /tmp/reboot_after_update

