mirror of https://github.com/OpenIPC/firmware.git
Add profile alias
parent
ef14f6e2da
commit
f52f101e0b
|
@ -19,11 +19,13 @@ export EDITOR='/bin/vi'
|
|||
|
||||
[ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; }
|
||||
|
||||
|
||||
majestic_changes() { diff -L "Majestic changes" -U 3 /rom/etc/majestic.yaml /etc/majestic.yaml; }
|
||||
|
||||
show_modules() { echo; cat /proc/modules | cut -f 1 -d " " | while read module; do echo "Module: $module"; \
|
||||
if [ -d "/sys/module/$module/parameters" ]; then ls /sys/module/$module/parameters/ | while read parameter; \
|
||||
do echo -n "Parameter: $parameter --> "; cat /sys/module/$module/parameters/$parameter; done; fi; echo; done; }
|
||||
|
||||
|
||||
show_fullname() { echo "openipc-$(ipctool --chip_id)-$(ipctool --sensor_id | awk -F '_' '{print $1}')"; }
|
||||
|
||||
set_fullname() { show_fullname >/etc/hostname; }
|
||||
|
|
Loading…
Reference in New Issue