#!/bin/sh -e

# Install passwd.master and group.master to sysconfdir
install -d -m 755 /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/dbus/1.14.10/recipe-sysroot/etc
for i in passwd group; do
	install -p -m 644 /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/dbus/1.14.10/recipe-sysroot/usr/share/base-passwd/$i.master 		/home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/dbus/1.14.10/recipe-sysroot/etc/$i
done

# Run any useradd postinsts
for script in /home/sim/yocto/scarthgap/build/tmp/work/cortexa72-poky-linux/dbus/1.14.10/recipe-sysroot/usr/bin/postinst-useradd-*; do
	if [ -f $script ]; then
		$script
	fi
done

