WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Recent Posts

Pages: 1 ... 8 9 [10]
91
Raspberry Pi / Re: Correct (if possible) way to update a tcz without a reboot
« Last post by Juanito on August 13, 2017, 08:33:55 AM »
Yes, busybox.suid
92
Raspberry Pi / Re: Correct (if possible) way to update a tcz without a reboot
« Last post by onelife on August 13, 2017, 08:30:29 AM »
Hi again,

Thank you so much for your help - However, interesting, busybox doesn't seem to have umount?

Code: [Select]
snb@snb:~$ sudo busybox umount -d /tmp/tcloop/studio
umount: applet not found

And according to busybox

Code: [Select]
snb@snb:~$ busybox
BusyBox v1.22.1 (2014-07-18 16:45:21 UTC) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2012.
Licensed under GPLv2. See source distribution for detailed
copyright notices.

Usage: busybox [function [arguments]...]
   or: busybox --list[-full]
   or: busybox --install [-s] [DIR]
   or: function [arguments]...

BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable.  Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.

Currently defined functions:
[, [[, addgroup, adduser, adjtimex, ar, arp, arping, ash, awk, basename, bunzip2, bzcat, bzip2, cal, cat, chgrp, chmod, chown, chpasswd, chroot, chrt, chvt,
cksum, clear, cmp, comm, cp, cpio, crond, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, df, diff, dirname, dmesg, dnsdomainname, dos2unix, du,
dumpkmap, dumpleases, echo, egrep, eject, env, ether-wake, expr, false, fbset, fdflush, fdformat, fdisk, fgconsole, fgrep, find, flock, fold, free, freeramdisk,
fsck, fstrim, ftpget, ftpput, fuser, getopt, getty, grep, gunzip, gzip, halt, hdparm, head, hexdump, hostid, hostname, hwclock, id, ifconfig, inetd, init,
insmod, install, ipcalc, ipcrm, ipcs, kill, killall, killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger, logname, logread,
losetup, ls, lsmod, lsof, md5sum, mesg, microcom, mkdir, mkfifo, mknod, mkswap, mktemp, modinfo, modprobe, more, mv, nameif, nbd-client, nc, netstat, nice,
nohup, nslookup, ntpd, od, openvt, patch, pgrep, pidof, pivot_root, pkill, poweroff, printenv, printf, ps, pwd, rdate, readlink, realpath, reboot, renice,
reset, resize, rev, rm, rmdir, rmmod, route, rpm, rpm2cpio, script, sed, seq, setarch, setconsole, setkeycodes, setsid, sh, sha1sum, sleep, sort, split,
start-stop-daemon, strings, stty, sulogin, sum, swapoff, swapon, switch_root, sync, sysctl, syslogd, tail, tar, taskset, tee, telnet, test, tftp, tftpd, time,
timeout, top, touch, tr, true, tty, udhcpc, udhcpd, udpsvd, uname, uncompress, uniq, unix2dos, unxz, unzip, uptime, usleep, vconfig, vi, watch, wc, wget, which,
who, whoami, xargs, xz, xzcat, yes, zcat

Or am I missing something?
93
Raspberry Pi / Re: Can't install usb-serial application
« Last post by capke on August 13, 2017, 08:17:16 AM »
Thanks Juanito, I was able to install the driver. Unfortunately, I still can't find a ttyUSB connection. When I search using lsusb, it recognizes the usb device, but not that it is a serial port (I'm using 'dmesg | grep tty' to check for the converter). I have a XS885 from usconverters, and it uses the ftdi chipset. I made sure to download the libftdi, and after reboot, still no luck. Any advice would be greatly appreciated. Thanks again for your fast replies!
94
Raspberry Pi / Re: Correct (if possible) way to update a tcz without a reboot
« Last post by polikuo on August 13, 2017, 07:09:51 AM »
Actually, previous versions did have that option:

Interesting ...
That explains why onelife's script performs differently between the two.
95
Raspberry Pi / Re: Correct (if possible) way to update a tcz without a reboot
« Last post by Rich on August 13, 2017, 06:54:48 AM »
Hi polikuo
Quote
sudo umount -d /tmp/tcloop/studio

Busybox umount does not have "-d" option

Code: [Select]
tc@box:~$ umount --help
BusyBox v1.26.2 (2017-05-05 04:20:53 UTC) multi-call binary.

Usage: umount [OPTIONS] FILESYSTEM|DIRECTORY

Unmount file systems

        -a      Unmount all file systems
        -r      Try to remount devices as read-only if mount is busy
        -l      Lazy umount (detach filesystem)
        -f      Force umount (i.e., unreachable NFS server)
        -D      Don't free loop device even if it has been used
Actually, previous versions did have that option:
Code: [Select]
tc@box:~$ busybox umount --help
BusyBox v1.19.3 (2011-10-30 01:47:29 UTC) multi-call binary.

Usage: umount [OPTIONS] FILESYSTEM|DIRECTORY

Unmount file systems

        -a      Unmount all file systems
        -r      Try to remount devices as read-only if mount is busy
        -l      Lazy umount (detach filesystem)
        -f      Force umount (i.e., unreachable NFS server)
        -d      Free loop device if it has been used

tc@box:~$
96
Raspberry Pi / Re: Correct (if possible) way to update a tcz without a reboot
« Last post by Rich on August 13, 2017, 06:51:27 AM »
Hi onelife
Quote
On a system running TC version 6 the same unmount / load process that works on TC 8 doesn't work.
Do you have  util-linux.tcz  installed? A Google search on that error turned up a  umount  bug in versions 2.25.1 and possibly
2.26 of  util-linux.tcz. See if this works any better:
Code: [Select]
sudo rm -f "/usr/local/tce.installed/studio"
sync
sudo busybox umount -d /tmp/tcloop/studio
sync
sudo -u snb tce-load -i studio
sleep 1
$UPDATE/com/start.sh &
97
Raspberry Pi / Re: Correct (if possible) way to update a tcz without a reboot
« Last post by polikuo on August 13, 2017, 06:46:42 AM »
Quote
sudo umount -d /tmp/tcloop/studio

Busybox umount does not have "-d" option

Code: [Select]
tc@box:~$ umount --help
BusyBox v1.26.2 (2017-05-05 04:20:53 UTC) multi-call binary.

Usage: umount [OPTIONS] FILESYSTEM|DIRECTORY

Unmount file systems

        -a      Unmount all file systems
        -r      Try to remount devices as read-only if mount is busy
        -l      Lazy umount (detach filesystem)
        -f      Force umount (i.e., unreachable NFS server)
        -D      Don't free loop device even if it has been used

Quote
sudo -u snb tce-load -i studio

I'd do
Code: [Select]
su tc -c 'tce-load -i studio'because this is what I get
Code: [Select]
tc@ox~$ sudo -u tc tce-load
Sorry, user tc is not allowed to execute '/usr/bin/tce-load' as tc on box.
98
Raspberry Pi / Re: Getting WiFi Working on rPi3 Model B
« Last post by Paul_123 on August 13, 2017, 06:05:30 AM »
And for the record, that firmware is the same for the rpi zero W.

99
Raspberry Pi / Re: Getting WiFi Working on rPi3 Model B
« Last post by Juanito on August 13, 2017, 05:44:17 AM »
modified
100
Raspberry Pi / Re: Correct (if possible) way to update a tcz without a reboot
« Last post by onelife on August 13, 2017, 05:39:08 AM »
Sorry, should have posted that too. It's basically this part :

Code: [Select]
sudo umount -d /tmp/tcloop/studio
sleep 1
sudo rm -f "/usr/local/tce.installed/studio"
sleep 1
sudo -u snb tce-load -i studio
sleep 1
$UPDATE/com/start.sh &

The start.sh script then starts our application etc.

Thank you!
Pages: 1 ... 8 9 [10]