Services: Hula
hula
3.0
true
yes
Change
- http://www.pfsense.com/packages/All/hula.tgz
Hula Default Domain
domain
Enter the default domain that hula will use.
input
conf_mount_rw();
config_lock();
$fout = fopen("/usr/local/etc/rc.d/hula.sh","w");
fwrite($fout, "#!/bin/sh\n\n");
fwrite($fout, "/usr/local/hula/sbin/hulamanager &\n");
fclose($fout);
system("chmod 555 /usr/local/etc/rc.d/hula.sh");
system("/usr/local/hula/sbin/hulasetup --domain=" . $_POST['domain']);
system("/usr/local/etc/rc.d/hula.sh");
conf_mount_ro();
config_unlock();
system("/usr/bin/killall -9 hulamanager");
system("rm -rf /usr/local/hula");
system("rm /usr/local/etc/rc.d/hula.sh");
$fout = fopen("/usr/local/etc/rc.d/hula.sh","w");
fwrite($fout, "#!/bin/sh\n\n");
fwrite($fout, "/sbin/mount -t linprocfs linprocfs /proc\n");
fwrite($fout, "/usr/local/hula/sbin/hulamanager &\n");
fclose($fout);
system("chmod 555 /usr/local/etc/rc.d/hula.sh &");