#!/bin/bash

# Load gparted live functions
. /usr/bin/gl-functions

if ! grep -q -Ew gp_prerun /proc/cmdline; then
  exit 1
fi
parse_cmdline_option "gp_prerun"

if [ -n "$gp_prerun" ]; then
  # Run it
  echo "Running $gp_prerun..."
  . $gp_prerun
fi
