Touch log file so it can be created on livecd

This commit is contained in:
Scott Ullrich 2010-12-18 14:42:31 -05:00
parent cc9464c189
commit d64fa7f254
2 changed files with 6 additions and 2 deletions

View File

@ -73,6 +73,7 @@ function services_dhcpd_configure() {
fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/usr/local/sbin\n");
fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/var/db\n");
fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/var/run\n");
fwrite($fd, "touch {$g['dhcpd_chroot_path']}/var/run/log\n");
fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/usr\n");
fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/lib\n");
fwrite($fd, "mkdir -p {$g['dhcpd_chroot_path']}/run\n");

View File

@ -24,8 +24,11 @@ var addRowTo = (function() {
tbody = d.getElementById(tableId).getElementsByTagName("tbody").item(0);
tr = d.createElement("tr");
totalrows++;
if(function_exists('row_helper_dynamic_custom'))
onChange = " onchange='row_helper_dynamic_custom(" + tr + ")' ";
// Check to see if our hook function is defined. If it is defined we will
// call into the hook for every row change event allowing javascript
// to enable/disable and do other things to the row.
if(function_exists('row_helper_dynamic_custom') == true)
onChange = " onChange='javascript:row_helper_dynamic_custom(" + tr + ")' ";
if (!objectSize)
objectSize = rowsize[i];
for (i = 0; i < field_counter_js; i++) {