#!/bin/sh
echo "VMotiONOS Test System Starting..."
mount -t proc proc /proc
echo "Checking VMotiONOS..."
if [ -f /proc/vmotionos_copy ]; then
    echo "SUCCESS: VMotiONOS found!"
    ./timestamp_printer &
    PID=$!
    echo "Started timestamp_printer PID: $PID"
    sleep 5
    echo $PID > /proc/vmotionos_copy
    echo "Copy test sent!"
    dmesg | grep vmotionos | tail -10
else
    echo "FAIL: VMotiONOS not found"
fi
echo "Dropping to shell..."
exec sh
