Jump to content

Pinapple Mark V Dip switches..


Recommended Posts

this is what I have in one of the dip banks 1-0-1 and switched;

sleep 5; tmux new -s new-Win

What Im expecting, is after it boots +5 , have a tmux session running called new-Win

tmux doesn't show any other sessions running when automating it via dip switch.


It works if I manually log in as root and run

mux new -s new-Win

Link to comment
Share on other sites

I was able to reproduce your issue. When issuing tmux list-sessions I find tmux not running.

root@Pineapple:~# tmux list-sessions
failed to connect to server: Connection refused

So I tried again with this script

#!/bin/bash
sleep 5; tmux new -s new-Win

And boot mode string: touch /tmp/started-tmux; /root/start-tmux.sh

And this is what I get

root@Pineapple:~# tmux list-sessions
failed to connect to server: Connection refused
root@Pineapple:~# ls /tmp/started*
/tmp/started-tmux
root@Pineapple:~# 

So the script is running and the problem seems to be with tmux. I'm new to this program (I usually use screen) so I'm not aware of anything that needs to be done off the top of my head.

Just to make sure it's running as root I installed the whoami coreutil

root@Pineapple:~# opkg install coreutils-whoami
Installing coreutils-whoami (8.16-1) to root...
Downloading http://cloud.wifipineapple.com/mk5/packages/coreutils-whoami_8.16-1_ar71xx.ipk.
Configuring coreutils-whoami.
root@Pineapple:~# whoami
root

And added whoami > /tmp/whoami as a boot mode and rebooted with the DIPS switched.

Here are the results:

root@Pineapple:~# cat /tmp/whoami 
root

So the boot mode scripts are being kicked off by root.

Hope this helps!

Link to comment
Share on other sites

Actually I checked and noticed that the OPKG library has an older version of it. It currently is at 1.9a , might have been fixed.

http://tmux.sourceforge.net/

Package: tmux Version: 1.6-2 Depends: libc, libncurses, libevent2, libpthread, librt Provides: Status: install user installed Section: utils Architecture: ar71xx Maintainer: OpenWrt Developers Team MD5Sum: 841e68ebadeb377f8026d8238d5c811b Size: 122873 Filename: tmux_1.6-2_ar71xx.ipk Source: feeds/packages/utils/tmux Description: tmux is a modern, BSD-licensed alternative to GNU screen. Installed-Time: 1400234318
Edited by WilsonB
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...