Modify

Opened 10 years ago

Closed 5 years ago

Last modified 5 years ago

#2869 closed defect (obsolete)

busybox: hostid

Reported by: michu-at-neophobdotcom Owned by: developers
Priority: normal Milestone: Features Paradise
Component: packages Version: Trunk
Keywords: Cc:

Description

host does not work:

BusyBox v1.8.2 (2007-12-16 16:43:12 CET) multi-call binary
Copyright (C) 1998-2006 Erik Andersen, Rob Landley, and others.
Licensed under GPLv2. See source distribution for full notice.

Usage: busybox [function] [arguments]...
   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:
        [, [[, arping, ash, awk, awx, basename, bunzip2, bzcat, cat, chgrp, chmod, chown, chroot, clear, cp, crond, crontab, cut, date,
        dd, df, diff, dirname, dmesg, du, echo, egrep, env, expr, false, fgrep, find, free, grep, gunzip, gzip, halt, head, hexdump,
        hostid, httpd, id, ifconfig, init, insmod, ipkg, kill, killall, killall5, klogd, length, less, ln, lock, logger, logread, ls,
        lsmod, md5sum, mesg, mkdir, mkfifo, mknod, mktemp, mount, mv, nc, netmsg, netstat, nice, nslookup, passwd, pgrep, pidof, ping,
        ping6, pivot_root, pkill, poweroff, printf, ps, pwd, rdate, reboot, reset, rm, rmdir, rmmod, route, sed, seq, sh, sleep, sort,
        start-stop-daemon, strings, switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, time, top, touch, tr,
        traceroute, true, udhcpc, umount, uname, uniq, uptime, vconfig, vi, watchdog, wc, wget, which, xargs, yes, zcat

root@OpenWrt:~# hostid
0

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by nico

  • Milestone set to Features Paradise
  • Version set to Trunk

comment:2 Changed 5 years ago by nbd

  • Resolution set to obsolete
  • Status changed from new to closed

comment:3 Changed 5 years ago by nbd

if the host id was set via /etc/hostid or the hostid() libc function, it will return a sane result. this function does not really work properly with routers that aren't connected to the internet and don't have a default internet-visible hostname.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.