- unknown
| version series | latest supported guest additions |
| <?php | |
| namespace AmceBundle\Command; | |
| class MyCommand | |
| { | |
| // ... | |
| protected function execute(InputInterface $input, OutputInterface $output) | |
| { |
| #!/bin/bash | |
| echo "Executing /etc/qemu-ifdown" | |
| echo "Bringing TAP interface down" | |
| ifconfig $1 down | |
| echo "Removing interfaces" | |
| ifconfig bridge0 deletem en0 deletem $1 | |
| echo "Bring down bridge" | |
| ifconfig bridge0 down | |
| echo "Removing bridge" | |
| ifconfig bridge0 destroy |
| #!/bin/bash | |
| echo "Executing /etc/qemu-ifup" | |
| echo "Creating bridge" | |
| sysctl -w net.link.ether.inet.proxyall=1 | |
| sysctl -w net.inet.ip.forwarding=1 | |
| sysctl -w net.inet.ip.fw.enable=1 | |
| ifconfig bridge0 create | |
| echo "Bringing up $1 for bridged mode" | |
| ifconfig $1 0.0.0.0 up | |
| echo "Add $1 to bridge" |
| // like 'Select' editor, but will always return a boolean (true or false) | |
| editors.BooleanSelect = editors.Select.extend({ | |
| initialize: function(options) { | |
| options.schema.options = [ | |
| { val: '1', label: 'Yes' }, | |
| { val: '', label: 'No' } | |
| ]; | |
| editors.Select.prototype.initialize.call(this, options); | |
| }, | |
| getValue: function() { |
| function lastValue(column) { | |
| var parts = column.split("!"); | |
| if (parts.length == 2) { | |
| var sheetName = parts[0]; | |
| var column = parts[1]; | |
| var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(sheetName); | |
| } else { | |
| var column = parts[0]; | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| } |
| The MIT License (MIT) | |
| Copyright (c) 2016 Stuart Powers | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |