diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index d7b917a3..c3510e61 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -973,6 +973,18 @@ initialise_mesh() { MESH_STARTUP_PARAMS="${MY_USERNAME} amnesic" fi + # command to switch to wired mesh + { echo '#!/bin/bash'; + echo 'echo -n "eth" > /root/.mesh_interface_type'; + echo 'systemctl reboot -i'; } > "$rootdir/usr/bin/wired" + chmod +x "$rootdir/usr/bin/wired" + + # command to switch to wireless mesh + { echo '#!/bin/bash'; + echo 'echo -n "wlan" > /root/.mesh_interface_type'; + echo 'systemctl reboot -i'; } > "$rootdir/usr/bin/wireless" + chmod +x "$rootdir/usr/bin/wireless" + { echo '[Unit]'; echo 'Description=Initial mesh router configuration'; echo 'After=syslog.target';