WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: wifi.sh and coreutils compatibility issue + resolution  (Read 1677 times)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
wifi.sh and coreutils compatibility issue + resolution
« on: August 10, 2014, 12:09:32 AM »
wifi.sh needs alias hostname="busybox hostname"

added to resolve a hostname error message whenever wifi.sh is run whilst coreutils.tcz is loaded in corepure64.  The error appears to originate from the x86_64 version of coreutils GNU Hostname v8.21 which doesn't have the short -s option

Most other hostname binaries eg x86_64/nettools/hostname, x86/inetutils/hostname, x86/coreutils/hostname and x86 & x86_64/busybox/hostname use older versions and are compatible with the short -s option (however there are other untested versions in the repo's).

the message is
Code: [Select]
hostname: invalid option -- 's'
Try 'hostname --help' for more information.

A fix for this error is enforce busybox version by adding alias hostname="busybox hostname" to the alias group
Code: [Select]
alias awk="busybox awk"
alias grep="busybox grep"
alias hostname="busybox hostname"


Tests good in my extension on both x86 & x86_64 installations

any chance of an update please?
« Last Edit: August 10, 2014, 12:13:53 AM by coreplayer2 »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: wifi.sh and coreutils compatibility issue + resolution
« Reply #1 on: August 10, 2014, 01:24:17 AM »
I'm away for the next ten days or so, but will get on to this as soon as I get back.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: wifi.sh and coreutils compatibility issue + resolution
« Reply #2 on: August 10, 2014, 02:32:50 AM »
Do not use alias, use absolute path to /bin/busybox
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."