Bladeren bron

2019-12-26 / Folus Wen

Actions:
1. rootfs prompt modify to user@hostname:pwd.
2. rootfs /usr/bin add lsd command.

Files:
1. As follow commit history.
FolusWen 5 jaren geleden
bovenliggende
commit
bce40b2eff
4 gewijzigde bestanden met toevoegingen van 8 en 1 verwijderingen
  1. BIN
      EVSE/Projects/AW-Regular/Images/ramdisk.gz
  2. 4 0
      EVSE/rootfs/etc/init.d/rcS
  3. 1 1
      EVSE/rootfs/etc/profile
  4. 3 0
      EVSE/rootfs/usr/bin/lsd

BIN
EVSE/Projects/AW-Regular/Images/ramdisk.gz


+ 4 - 0
EVSE/rootfs/etc/init.d/rcS

@@ -73,6 +73,10 @@ echo -e " Starting LIGHTTPD		: \n"
 cp /root/.tmate.conf /
 /usr/sbin/crond &
 
+id=CSU3_$(cat /sys/class/net/eth0/address)
+echo $id > /etc/hostname
+hostname -F /etc/hostname
+
 #status $? 0
 
 #   ---------------------------------------------

+ 1 - 1
EVSE/rootfs/etc/profile

@@ -6,4 +6,4 @@ alias l='ls $LS_OPTIONS -lA'
 alias rm='rm -i'
 alias cp='cp -i'
 export LC_ALL='en_US.UTF-8'
-
+PS1="\u@\h:\w#"

+ 3 - 0
EVSE/rootfs/usr/bin/lsd

@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ls -l | grep ^d | awk '{print $9}' | xargs du -sh | sort -n