Skip to content

base-files: Enhancements to /etc/profile#4

Closed
VittGam wants to merge 1 commit intolede-project:masterfrom
VittGam:patch-1
Closed

base-files: Enhancements to /etc/profile#4
VittGam wants to merge 1 commit intolede-project:masterfrom
VittGam:patch-1

Conversation

@VittGam
Copy link
Contributor

@VittGam VittGam commented May 12, 2016

  • Update the terminal window title with the current directory and hostname, if using an xterm-compatible terminal emulator.
  • Add ll, an useful alias to ls.

Cheers,
Vittorio

- Update the terminal window title with the current directory and hostname, if using an xterm-compatible terminal emulator.
- Add ll, an useful alias to ls.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
@VittGam
Copy link
Contributor Author

VittGam commented May 12, 2016

For the record, this patch previously contained these changes too:

  • Change the default prompt to surround the current directory with spaces.
  • Add an optional colored prompt, in case the user wants to enable it.
-export PS1='\u@\h:\w\$ '
+export PS1='\u@\h \w \$ '
+
+# Uncomment the following line if you want a colored prompt:
+#export PS1='\[\033[01;33m\]\u\[\033[01;34m\]@\[\033[01;32m\]\h \[\033[01;31m\]\w \[\033[01;35m\]\$ \[\033[00m\]'

@jow-
Copy link
Member

jow- commented May 13, 2016

+1 from me, any objections?

@lynxis
Copy link
Member

lynxis commented May 13, 2016

I like the idea. Unsure how much trouble we get into with color.
+1

@jow-
Copy link
Member

jow- commented May 13, 2016

The colored prompt changes have been left out in this PR spin

@thess
Copy link
Member

thess commented May 13, 2016

Not particularly fond of prompt and ls opts, but I use a custom /etc/profile all the time anyway.

I'm neutral

@blogic
Copy link
Contributor

blogic commented May 13, 2016

+1, i did not like the PS1 changes as it would just get a 2nd crowd wanting back the old behaviour. i am happy now with it removed

@jow-
Copy link
Member

jow- commented May 14, 2016

@jow- jow- closed this May 14, 2016
ptpt52 added a commit to ptpt52/lede-source that referenced this pull request Jul 21, 2017
	#0  0x77fceba4 in memset () from /lib/ld-musl-mips-sf.so.1
	#1  0x00406fc9 in answer_request (header=header@entry=0x52c440, limit=<optimized out>, qlen=qlen@entry=690, local_addr=..., local_addr@entry=...,
			    local_netmask=local_netmask@entry=..., now=now@entry=1500609066, ad_reqd=ad_reqd@entry=1, do_bit=do_bit@entry=0, have_pseudoheader=0) at rfc1035.c:1228
	#2  0x0040e7e9 in receive_query (listen=listen@entry=0x52dee0, now=now@entry=1500609066) at forward.c:1433
	lede-project#3  0x00410681 in check_dns_listeners (now=now@entry=1500609066) at dnsmasq.c:1565
	lede-project#4  0x00404269 in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1044
ptpt52 added a commit to ptpt52/lede-source that referenced this pull request Jul 22, 2017
	#0  0x77fceba4 in memset () from /lib/ld-musl-mips-sf.so.1
	#1  0x00406fc9 in answer_request (header=header@entry=0x52c440, limit=<optimized out>, qlen=qlen@entry=690, local_addr=..., local_addr@entry=...,
			    local_netmask=local_netmask@entry=..., now=now@entry=1500609066, ad_reqd=ad_reqd@entry=1, do_bit=do_bit@entry=0, have_pseudoheader=0) at rfc1035.c:1228
	#2  0x0040e7e9 in receive_query (listen=listen@entry=0x52dee0, now=now@entry=1500609066) at forward.c:1433
	lede-project#3  0x00410681 in check_dns_listeners (now=now@entry=1500609066) at dnsmasq.c:1565
	lede-project#4  0x00404269 in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1044
ptpt52 added a commit to ptpt52/lede-source that referenced this pull request Jul 27, 2017
	#0  0x77fceba4 in memset () from /lib/ld-musl-mips-sf.so.1
	#1  0x00406fc9 in answer_request (header=header@entry=0x52c440, limit=<optimized out>, qlen=qlen@entry=690, local_addr=..., local_addr@entry=...,
			    local_netmask=local_netmask@entry=..., now=now@entry=1500609066, ad_reqd=ad_reqd@entry=1, do_bit=do_bit@entry=0, have_pseudoheader=0) at rfc1035.c:1228
	#2  0x0040e7e9 in receive_query (listen=listen@entry=0x52dee0, now=now@entry=1500609066) at forward.c:1433
	lede-project#3  0x00410681 in check_dns_listeners (now=now@entry=1500609066) at dnsmasq.c:1565
	lede-project#4  0x00404269 in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1044
ptpt52 added a commit to ptpt52/lede-source that referenced this pull request Jul 29, 2017
	#0  0x77fceba4 in memset () from /lib/ld-musl-mips-sf.so.1
	#1  0x00406fc9 in answer_request (header=header@entry=0x52c440, limit=<optimized out>, qlen=qlen@entry=690, local_addr=..., local_addr@entry=...,
			    local_netmask=local_netmask@entry=..., now=now@entry=1500609066, ad_reqd=ad_reqd@entry=1, do_bit=do_bit@entry=0, have_pseudoheader=0) at rfc1035.c:1228
	#2  0x0040e7e9 in receive_query (listen=listen@entry=0x52dee0, now=now@entry=1500609066) at forward.c:1433
	lede-project#3  0x00410681 in check_dns_listeners (now=now@entry=1500609066) at dnsmasq.c:1565
	lede-project#4  0x00404269 in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1044
ptpt52 added a commit to ptpt52/lede-source that referenced this pull request Aug 2, 2017
	#0  0x77fceba4 in memset () from /lib/ld-musl-mips-sf.so.1
	#1  0x00406fc9 in answer_request (header=header@entry=0x52c440, limit=<optimized out>, qlen=qlen@entry=690, local_addr=..., local_addr@entry=...,
			    local_netmask=local_netmask@entry=..., now=now@entry=1500609066, ad_reqd=ad_reqd@entry=1, do_bit=do_bit@entry=0, have_pseudoheader=0) at rfc1035.c:1228
	#2  0x0040e7e9 in receive_query (listen=listen@entry=0x52dee0, now=now@entry=1500609066) at forward.c:1433
	lede-project#3  0x00410681 in check_dns_listeners (now=now@entry=1500609066) at dnsmasq.c:1565
	lede-project#4  0x00404269 in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1044
ptpt52 added a commit to ptpt52/lede-source that referenced this pull request Aug 4, 2017
	#0  0x77fceba4 in memset () from /lib/ld-musl-mips-sf.so.1
	#1  0x00406fc9 in answer_request (header=header@entry=0x52c440, limit=<optimized out>, qlen=qlen@entry=690, local_addr=..., local_addr@entry=...,
			    local_netmask=local_netmask@entry=..., now=now@entry=1500609066, ad_reqd=ad_reqd@entry=1, do_bit=do_bit@entry=0, have_pseudoheader=0) at rfc1035.c:1228
	#2  0x0040e7e9 in receive_query (listen=listen@entry=0x52dee0, now=now@entry=1500609066) at forward.c:1433
	lede-project#3  0x00410681 in check_dns_listeners (now=now@entry=1500609066) at dnsmasq.c:1565
	lede-project#4  0x00404269 in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1044
ptpt52 added a commit to ptpt52/lede-source that referenced this pull request Aug 9, 2017
	#0  0x77fceba4 in memset () from /lib/ld-musl-mips-sf.so.1
	#1  0x00406fc9 in answer_request (header=header@entry=0x52c440, limit=<optimized out>, qlen=qlen@entry=690, local_addr=..., local_addr@entry=...,
			    local_netmask=local_netmask@entry=..., now=now@entry=1500609066, ad_reqd=ad_reqd@entry=1, do_bit=do_bit@entry=0, have_pseudoheader=0) at rfc1035.c:1228
	#2  0x0040e7e9 in receive_query (listen=listen@entry=0x52dee0, now=now@entry=1500609066) at forward.c:1433
	lede-project#3  0x00410681 in check_dns_listeners (now=now@entry=1500609066) at dnsmasq.c:1565
	lede-project#4  0x00404269 in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1044
ptpt52 added a commit to ptpt52/lede-source that referenced this pull request Aug 17, 2017
	#0  0x77fceba4 in memset () from /lib/ld-musl-mips-sf.so.1
	#1  0x00406fc9 in answer_request (header=header@entry=0x52c440, limit=<optimized out>, qlen=qlen@entry=690, local_addr=..., local_addr@entry=...,
			    local_netmask=local_netmask@entry=..., now=now@entry=1500609066, ad_reqd=ad_reqd@entry=1, do_bit=do_bit@entry=0, have_pseudoheader=0) at rfc1035.c:1228
	#2  0x0040e7e9 in receive_query (listen=listen@entry=0x52dee0, now=now@entry=1500609066) at forward.c:1433
	lede-project#3  0x00410681 in check_dns_listeners (now=now@entry=1500609066) at dnsmasq.c:1565
	lede-project#4  0x00404269 in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1044
ptpt52 added a commit to ptpt52/lede-source that referenced this pull request Aug 20, 2017
	#0  0x77fceba4 in memset () from /lib/ld-musl-mips-sf.so.1
	#1  0x00406fc9 in answer_request (header=header@entry=0x52c440, limit=<optimized out>, qlen=qlen@entry=690, local_addr=..., local_addr@entry=...,
			    local_netmask=local_netmask@entry=..., now=now@entry=1500609066, ad_reqd=ad_reqd@entry=1, do_bit=do_bit@entry=0, have_pseudoheader=0) at rfc1035.c:1228
	#2  0x0040e7e9 in receive_query (listen=listen@entry=0x52dee0, now=now@entry=1500609066) at forward.c:1433
	lede-project#3  0x00410681 in check_dns_listeners (now=now@entry=1500609066) at dnsmasq.c:1565
	lede-project#4  0x00404269 in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1044
ptpt52 added a commit to ptpt52/lede-source that referenced this pull request Aug 24, 2017
	#0  0x77fceba4 in memset () from /lib/ld-musl-mips-sf.so.1
	#1  0x00406fc9 in answer_request (header=header@entry=0x52c440, limit=<optimized out>, qlen=qlen@entry=690, local_addr=..., local_addr@entry=...,
			    local_netmask=local_netmask@entry=..., now=now@entry=1500609066, ad_reqd=ad_reqd@entry=1, do_bit=do_bit@entry=0, have_pseudoheader=0) at rfc1035.c:1228
	#2  0x0040e7e9 in receive_query (listen=listen@entry=0x52dee0, now=now@entry=1500609066) at forward.c:1433
	lede-project#3  0x00410681 in check_dns_listeners (now=now@entry=1500609066) at dnsmasq.c:1565
	lede-project#4  0x00404269 in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1044
ptpt52 added a commit to ptpt52/lede-source that referenced this pull request Aug 27, 2017
	#0  0x77fceba4 in memset () from /lib/ld-musl-mips-sf.so.1
	#1  0x00406fc9 in answer_request (header=header@entry=0x52c440, limit=<optimized out>, qlen=qlen@entry=690, local_addr=..., local_addr@entry=...,
			    local_netmask=local_netmask@entry=..., now=now@entry=1500609066, ad_reqd=ad_reqd@entry=1, do_bit=do_bit@entry=0, have_pseudoheader=0) at rfc1035.c:1228
	#2  0x0040e7e9 in receive_query (listen=listen@entry=0x52dee0, now=now@entry=1500609066) at forward.c:1433
	lede-project#3  0x00410681 in check_dns_listeners (now=now@entry=1500609066) at dnsmasq.c:1565
	lede-project#4  0x00404269 in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1044
ptpt52 added a commit to ptpt52/lede-source that referenced this pull request Aug 31, 2017
	#0  0x77fceba4 in memset () from /lib/ld-musl-mips-sf.so.1
	#1  0x00406fc9 in answer_request (header=header@entry=0x52c440, limit=<optimized out>, qlen=qlen@entry=690, local_addr=..., local_addr@entry=...,
			    local_netmask=local_netmask@entry=..., now=now@entry=1500609066, ad_reqd=ad_reqd@entry=1, do_bit=do_bit@entry=0, have_pseudoheader=0) at rfc1035.c:1228
	#2  0x0040e7e9 in receive_query (listen=listen@entry=0x52dee0, now=now@entry=1500609066) at forward.c:1433
	lede-project#3  0x00410681 in check_dns_listeners (now=now@entry=1500609066) at dnsmasq.c:1565
	lede-project#4  0x00404269 in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1044
ptpt52 added a commit to ptpt52/lede-source that referenced this pull request Sep 1, 2017
	#0  0x77fceba4 in memset () from /lib/ld-musl-mips-sf.so.1
	#1  0x00406fc9 in answer_request (header=header@entry=0x52c440, limit=<optimized out>, qlen=qlen@entry=690, local_addr=..., local_addr@entry=...,
			    local_netmask=local_netmask@entry=..., now=now@entry=1500609066, ad_reqd=ad_reqd@entry=1, do_bit=do_bit@entry=0, have_pseudoheader=0) at rfc1035.c:1228
	#2  0x0040e7e9 in receive_query (listen=listen@entry=0x52dee0, now=now@entry=1500609066) at forward.c:1433
	lede-project#3  0x00410681 in check_dns_listeners (now=now@entry=1500609066) at dnsmasq.c:1565
	lede-project#4  0x00404269 in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1044
ptpt52 added a commit to ptpt52/lede-source that referenced this pull request Sep 6, 2017
	#0  0x77fceba4 in memset () from /lib/ld-musl-mips-sf.so.1
	#1  0x00406fc9 in answer_request (header=header@entry=0x52c440, limit=<optimized out>, qlen=qlen@entry=690, local_addr=..., local_addr@entry=...,
			    local_netmask=local_netmask@entry=..., now=now@entry=1500609066, ad_reqd=ad_reqd@entry=1, do_bit=do_bit@entry=0, have_pseudoheader=0) at rfc1035.c:1228
	#2  0x0040e7e9 in receive_query (listen=listen@entry=0x52dee0, now=now@entry=1500609066) at forward.c:1433
	lede-project#3  0x00410681 in check_dns_listeners (now=now@entry=1500609066) at dnsmasq.c:1565
	lede-project#4  0x00404269 in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1044
ptpt52 added a commit to male-puppies/lede-source that referenced this pull request Oct 10, 2017
	#0  0x77fceba4 in memset () from /lib/ld-musl-mips-sf.so.1
	ptpt52#1  0x00406fc9 in answer_request (header=header@entry=0x52c440, limit=<optimized out>, qlen=qlen@entry=690, local_addr=..., local_addr@entry=...,
			    local_netmask=local_netmask@entry=..., now=now@entry=1500609066, ad_reqd=ad_reqd@entry=1, do_bit=do_bit@entry=0, have_pseudoheader=0) at rfc1035.c:1228
	ptpt52#2  0x0040e7e9 in receive_query (listen=listen@entry=0x52dee0, now=now@entry=1500609066) at forward.c:1433
	lede-project#3  0x00410681 in check_dns_listeners (now=now@entry=1500609066) at dnsmasq.c:1565
	lede-project#4  0x00404269 in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1044
jow- pushed a commit that referenced this pull request Dec 22, 2020
The Ubiquiti Network airCube AC is a cube shaped device supporting
2.4 GHz and 5 GHz with internal 2x2 MIMO antennas.
It can be powered with either one of:
 - 24v power supply with 3.0mm x 1.0mm barrel plug
 - 24v passive PoE on first LAN port
There are four 10/100/1000 Mbps ports (1 * WAN + 3 * LAN).
First LAN port have optional PoE passthrough to the WAN port.

SoC:       Qualcomm / Atheros AR9342
RAM:       64 MB DDR2
Flash:     16 MB SPI NOR
Ethernet:  4x 10/100/1000 Mbps (1 WAN + 3 LAN)
LEDS:      1x via a SPI controller (not yet supported)
Buttons:   1x Reset
Serial:    1x (only RX and TX); 115200 baud, 8N1

Missing features:
 - LED control is not supported

Physical to internal switch port mapping:
 - physical port #1 (poe in) = switchport 2
 - physical port #2 = switchport 3
 - physical port #3 = switchport 5
 - physical port #4 (wan/poe out) = switchport 4

Factory update is tested and is the same as for Ubiquiti AirCube ISP
hence the shared configuration between that devices.

Signed-off-by: Roman Kuzmitskii <damex.pp@icloud.com>
openwrt-bot pushed a commit that referenced this pull request May 20, 2023
Iomega Storcenter ix4-200d is a four-bay SATA NAS powered by a Marvell
Kirkwood SoC clocked at 1.2GHz. It has 512MB of RAM and 32MB of
flash memory, 3x USB 2.0 and 2x 1Gbit/s NIC

Specification:
- SoC: Marvell Kirkwood 88F6281
- CPU/Speed: 1200Mhz
- Flash size: 32 MiB
- RAM: 512MB
- LAN: 2x 1Gbit/s
- 3x USB 2.0

Notes:
- The blue drive LED is triggered by HDD activity, it can not be controlled
  via GPIO.
- The LCD screen requires proprietary code and does not function at this time.
- Due to a kernel-related issue with the Marvell 88SE6121 SATA controller,
  currently only trays numbered #3 and #4 work, #1 and #2 do not. [1]

Serial pinout:

    CN4
    --------------
    | 10 8 6 4 2 |
    |  9 7 5 3 1 |
    -------------- PIN 1 Mark (fat line)

     1 = RXD
     4 = TXD
     6 = GND
     9 = 3.3V (not necessary to connect)

Installation instructions:
1. download initramfs-uImage and copy into tftp server
2. connect the tftp server to network port #1
3. access uboot environment with serial cable and run

    setenv mainlineLinux yes
    setenv arcNumber 1682
    setenv console 'console=ttyS0,115200n8'
    setenv mtdparts 'mtdparts=orion_nand:0x100000@0x000000(u-boot)ro,0x20000@0xA0000(u-boot environment)ro,0x300000@0x100000(kernel),0x1C00000@0x400000(ubi)'
    setenv bootargs_root 'root='
    setenv bootcmd 'setenv bootargs ${console} ${mtdparts} ${bootargs_root}; nand read.e 0x800000 0x100000 0x300000; bootm 0x00800000'
    saveenv
    setenv serverip 192.168.1.1
    setenv ipaddr 192.168.1.2
    tftpboot 0x00800000 [initramfs-uImage filename]
    bootm 0x00800000

4. connect to LAN on network port #2, log into openwrt and sysupgrade to install into flash

[1] https://bugzilla.kernel.org/show_bug.cgi?id=216094

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
(aligned FROM from signed-off. LED+key rename, whitespace removal)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
lynxis pushed a commit to lynxis/source that referenced this pull request Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants