#!/bin/bash

# Fake systemctl script for SysVinit systems
# Supports: poweroff, hibernate, reboot

case "$1" in
  poweroff)
    echo "Simulating: systemctl poweroff"
    /sbin/poweroff
    ;;
  hibernate)
    echo "Simulating: systemctl hibernate"
    # Assuming pm-hibernate is installed
    /usr/sbin/pm-hibernate
    ;;
  reboot)
    echo "Simulating: systemctl reboot"
    /sbin/reboot
    ;;
  *)
    echo "Usage: $0 {poweroff|hibernate|reboot}"
    exit 1
    ;;
esac

