You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
2.0 KiB

10 years ago
#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
service_link_enhanced("iaxmodem", "S95", "7");
service_link_enhanced("iaxmodem", "K05", "6");
service_link_enhanced("iaxmodem", "K05", "0");
service_link_enhanced("iaxmodem2", "S95", "7");
service_link_enhanced("iaxmodem2", "K05", "6");
service_link_enhanced("iaxmodem2", "K05", "0");
service_link_enhanced("faxgetty-iax", "S96", "7");
service_link_enhanced("faxgetty-iax", "K03", "6");
service_link_enhanced("faxgetty-iax", "K03", "0");
service_link_enhanced("faxgetty-iax2", "S96", "7");
service_link_enhanced("faxgetty-iax2", "K03", "6");
service_link_enhanced("faxgetty-iax2", "K03", "0");
10 years ago
safe_symlink("restart", "root/etc/e-smith/events/fax-update/services2adjust/hylafax");
safe_symlink("restart", "root/etc/e-smith/events/fax-update/services2adjust/iaxmodem");
safe_symlink("restart", "root/etc/e-smith/events/fax-update/services2adjust/iaxmodem2");
safe_symlink("restart", "root/etc/e-smith/events/fax-update/services2adjust/faxgetty-iax");
safe_symlink("restart", "root/etc/e-smith/events/fax-update/services2adjust/faxgetty-iax2");
10 years ago
templates2events("/etc/iaxmodem/iaxmodem-cfg.ttyIAX", qw(fax-update bootstrap-console-save));
templates2events("/etc/iaxmodem/iaxmodem-cfg.ttyIAX2", qw(fax-update bootstrap-console-save));
safe_touch("root/var/service/iaxmodem/down");
safe_touch("root/var/service/iaxmodem2/down");
safe_touch("root/var/service/faxgetty-iax/down");
safe_touch("root/var/service/faxgetty-iax2/down");
10 years ago
safe_symlink("../daemontools" , 'root/etc/rc.d/init.d/supervise/iaxmodem');
safe_symlink("../daemontools" , 'root/etc/rc.d/init.d/supervise/iaxmodem2');
safe_symlink("../daemontools" , 'root/etc/rc.d/init.d/supervise/faxgetty-iax');
safe_symlink("../daemontools" , 'root/etc/rc.d/init.d/supervise/faxgetty-iax2');
10 years ago
safe_symlink("/var/service/iaxmodem" , 'root/service/iaxmodem');
safe_symlink("/var/service/iaxmodem2" , 'root/service/iaxmodem2');
safe_symlink("/var/service/faxgetty-iax" , 'root/service/faxgetty-iax');
safe_symlink("/var/service/faxgetty-iax2" , 'root/service/faxgetty-iax2');
10 years ago