#!/bin/bash
if cat /proc/1/cmdline | grep -q initng
then
    exec /sbin/ngc -j reboot
else
    exec /sbin/shutdown -r now
fi
