Programming syntax request
-
Who will help me on this ?
I have no idea how the exact syntax is to be able to allow this to work ….
I modified /etc/rc.bootup ...echo "Initializing...";
echo "Reset LED panel...";
exec ("/bin/lprled -r");
echo "Set unarmed mode and current boot slice on LED panel.";
if ("mount | grep /dev/ufs/pfsense | cut -d' ' -f1" == "/dev/ufs/pfsense0")
exec ("/bin/lprled -b 0 -w 0x9");
else
exec ("/bin/lprled -b 0 -w 0x5"); -
Who will help me on this ?
I have no idea how the exact syntax is to be able to allow this to work ….
I modified /etc/rc.bootup ...Try this:
echo "Initializing..."; echo "Reset LED panel..."; exec("/bin/lprled -r"); echo "Set unarmed mode and current boot slice on LED panel."; if (`mount | grep /dev/ufs/pfsense | cut -d' ' -f1` == "/dev/ufs/pfsense0") exec("/bin/lprled -b 0 -w 0x9"); else exec("/bin/lprled -b 0 -w 0x5");
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.