Last login: Mon Jul 20 23:35:50 on ttys000
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
8e:5b:c3:53:fb:55:b4:21:d3:41:d1:9b:42:26:e2:90.
Please contact your system administrator.
Add correct host key in /Users/user/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/user/.ssh/known_hosts:4
RSA host key for 192.168.10.1 has changed and you have requested strict checking.
Host key verification failed.
seaborgium:~ user$ vim .ssh/known_hosts
The authenticity of host '192.168.10.1 (192.168.10.1)' can't be established.
RSA key fingerprint is 8e:5b:c3:53:fb:55:b4:21:d3:41:d1:9b:42:26:e2:90.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.10.1' (RSA) to the list of known hosts.
BusyBox v1.23.2 (2015-05-27 19:04:44 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
CHAOS CALMER (Bleeding Edge, r45770)
-----------------------------------------------------
* 1 1/2 oz Gin Shake with a glassful
* 1/4 oz Triple Sec of broken ice and pour
* 3/4 oz Lime Juice unstrained into a goblet.
* 1 1/2 oz Orange Juice
* 1 tsp. Grenadine Syrup
-----------------------------------------------------
root@OpenWrt:~# opkg list-installed
base-files - 157-r45770
busybox - 1.23.2-1
dnsmasq - 2.73rc8-1
dropbear - 2015.67-1
firewall - 2015-05-26
fstools - 2015-05-24-09027fc86babc3986027a0e677aca1b6999a9e14
hostapd-common - 2015-03-25-1
ip6tables - 1.4.21-1
iptables - 1.4.21-1
iw - 3.17-1
iwinfo - 2015-05-26-e8a1e7d224918ba23fe0cd125e70907cb31aea31
jshn - 2015-05-08-a8e70c6d361967a23977417fb7d6cf56234f8b81
jsonfilter - 2014-06-19-cdc760c58077f44fc40adbbe41e1556a67c1b9a9
kernel - 3.18.14-1-fc0c25a3c686461daa6a498969b26c69
kmod-cfg80211 - 3.18.14+2015-03-09-3
kmod-crypto-aes - 3.18.14-1
kmod-crypto-arc4 - 3.18.14-1
kmod-crypto-core - 3.18.14-1
kmod-eeprom-93cx6 - 3.18.14-1
kmod-gpio-button-hotplug - 3.18.14-1
kmod-ip6tables - 3.18.14-1
kmod-ipt-conntrack - 3.18.14-1
kmod-ipt-core - 3.18.14-1
kmod-ipt-nat - 3.18.14-1
kmod-ipv6 - 3.18.14-1
kmod-leds-gpio - 3.18.14-1
kmod-ledtrig-usbdev - 3.18.14-1
kmod-lib-crc-ccitt - 3.18.14-1
kmod-lib-crc-itu-t - 3.18.14-1
kmod-mac80211 - 3.18.14+2015-03-09-3
kmod-nf-conntrack - 3.18.14-1
kmod-nf-conntrack6 - 3.18.14-1
kmod-nf-ipt - 3.18.14-1
kmod-nf-ipt6 - 3.18.14-1
kmod-nf-nat - 3.18.14-1
kmod-nf-nathelper - 3.18.14-1
kmod-nls-base - 3.18.14-1
kmod-ppp - 3.18.14-1
kmod-pppoe - 3.18.14-1
kmod-pppox - 3.18.14-1
kmod-rt2800-lib - 3.18.14+2015-03-09-3
kmod-rt2800-mmio - 3.18.14+2015-03-09-3
kmod-rt2800-pci - 3.18.14+2015-03-09-3
kmod-rt2800-soc - 3.18.14+2015-03-09-3
kmod-rt2x00-lib - 3.18.14+2015-03-09-3
kmod-rt2x00-mmio - 3.18.14+2015-03-09-3
kmod-rt2x00-pci - 3.18.14+2015-03-09-3
kmod-slhc - 3.18.14-1
kmod-usb-core - 3.18.14-1
kmod-usb-ohci - 3.18.14-1
kmod-usb2 - 3.18.14-1
libblobmsg-json - 2015-05-08-a8e70c6d361967a23977417fb7d6cf56234f8b81
libc - 0.9.33.2-1
libgcc - 4.8-linaro-1
libip4tc - 1.4.21-1
libip6tc - 1.4.21-1
libiwinfo - 2015-05-26-e8a1e7d224918ba23fe0cd125e70907cb31aea31
libiwinfo-lua - 2015-06-01-ade8b1b299cbd5748db1acf80dd3e9f567938371
libjson-c - 0.12-1
libjson-script - 2015-05-08-a8e70c6d361967a23977417fb7d6cf56234f8b81
liblua - 5.1.5-1
libnl-tiny - 0.1-4
libpolarssl - 1.3.11-1
libubox - 2015-05-08-a8e70c6d361967a23977417fb7d6cf56234f8b81
libubus - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e
libubus-lua - 2015-07-07-7ec9b8dec77b969bfc860995f96fe91fd40ba5e4
libuci - 2015-04-09.1-1
libuci-lua - 2015-04-09.1-1
libustream-polarssl - 2015-07-09-c2d73c22618e8ee444e8d346695eca908ecb72d3
libxtables - 1.4.21-1
lua - 5.1.5-1
luci-app-firewall - git-15.196.77296-3610f32-1
luci-base - git-15.196.77296-3610f32-1
luci-lib-ip - git-15.196.77296-3610f32-1
luci-lib-nixio - git-15.196.77296-3610f32-1
luci-mod-admin-full - git-15.196.77296-3610f32-1
luci-proto-ipv6 - git-15.196.77296-3610f32-1
luci-proto-ppp - git-15.196.77296-3610f32-1
luci-theme-bootstrap - git-15.196.77296-3610f32-1
mtd - 20
netifd - 2015-05-26-5990d1126fd33665e106508ebcbadfbb2d703d8e
odhcp6c - 2015-05-19-68042ddafe0e1a3498b6c7a57ec8d2d20f25650b
odhcpd - 2015-05-21-2ebf6c8216287983779c8ec6597d30893b914a7c
opkg - 9c97d5ecd795709c8584e972bfdf3aee3a5b846d-7
ppp - 2.4.7-5
ppp-mod-pppoe - 2.4.7-5
procd - 2015-05-23-a771644fd3a3ac055ec0c62fbe434aed0df002fe
px5g - 3
rpcd - 2015-07-15-410802e106184d15805c5a66830d3072bd58ce30
swconfig - 10
ubox - 2015-05-22-ab5b47397cc143798ba2f367f04579e5b5b82070
ubus - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e
ubusd - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e
uci - 2015-04-09.1-1
uhttpd - 2015-05-31-daeea305298197bb50c1e63cdd842ee1d9461d80
uhttpd-mod-ubus - 2015-05-31-daeea305298197bb50c1e63cdd842ee1d9461d80
usign - 2015-05-08-cf8dcdb8a4e874c77f3e9a8e9b643e8c17b19131
wpad-mini - 2015-03-25-1
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/base/Packages.gz.
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/base/Packages.sig.
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/luci/Packages.gz.
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/luci/Packages.sig.
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/management/Packages.gz.
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/management/Packages.sig.
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/packages/Packages.gz.
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/packages/Packages.sig.
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/routing/Packages.gz.
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/routing/Packages.sig.
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/telephony/Packages.gz.
wget: bad address 'downloads.openwrt.org'
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/telephony/Packages.sig.
wget: bad address 'downloads.openwrt.org'
Signature check failed.
Remove wrong Signature file.
Collected errors:
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/base/Packages.gz, wget returned 1.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/base/Packages.sig, wget returned 1.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/luci/Packages.gz, wget returned 1.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/luci/Packages.sig, wget returned 1.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/management/Packages.gz, wget returned 1.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/management/Packages.sig, wget returned 1.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/packages/Packages.gz, wget returned 1.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/packages/Packages.sig, wget returned 1.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/routing/Packages.gz, wget returned 1.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/routing/Packages.sig, wget returned 1.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/telephony/Packages.gz, wget returned 1.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/telephony/Packages.sig, wget returned 1.
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_base.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/base/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/luci/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_luci.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/luci/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/management/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_management.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/management/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_packages.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/packages/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/routing/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_routing.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/routing/Packages.sig.
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/telephony/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_telephony.
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/telephony/Packages.sig.
Signature check passed.
root@OpenWrt:~# opkg --force-reinstall install luci
No packages removed.
Installing luci (git-15.196.77296-3610f32-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/luci/luci_git-15.196.77296-3610f32-1_all.ipk.
Configuring luci.
root@OpenWrt:~# /etc/init.d/uhttpd start
/etc/rc.common: eval: line 1: /usr/sbin/px5g: not found
mv: can't rename '/etc/uhttpd.key.new': No such file or directory
mv: can't rename '/etc/uhttpd.crt.new': No such file or directory
root@OpenWrt:~# vim /etc/rc.common
root@OpenWrt:~# vim /usr/sbin/px5g
root@OpenWrt:~# opkg list-installed
base-files - 157-r45770
busybox - 1.23.2-1
dnsmasq - 2.73rc8-1
dropbear - 2015.67-1
firewall - 2015-05-26
fstools - 2015-05-24-09027fc86babc3986027a0e677aca1b6999a9e14
hostapd-common - 2015-03-25-1
ip6tables - 1.4.21-1
iptables - 1.4.21-1
iw - 3.17-1
iwinfo - 2015-05-26-e8a1e7d224918ba23fe0cd125e70907cb31aea31
jshn - 2015-05-08-a8e70c6d361967a23977417fb7d6cf56234f8b81
jsonfilter - 2014-06-19-cdc760c58077f44fc40adbbe41e1556a67c1b9a9
kernel - 3.18.14-1-fc0c25a3c686461daa6a498969b26c69
kmod-cfg80211 - 3.18.14+2015-03-09-3
kmod-crypto-aes - 3.18.14-1
kmod-crypto-arc4 - 3.18.14-1
kmod-crypto-core - 3.18.14-1
kmod-eeprom-93cx6 - 3.18.14-1
kmod-gpio-button-hotplug - 3.18.14-1
kmod-ip6tables - 3.18.14-1
kmod-ipt-conntrack - 3.18.14-1
kmod-ipt-core - 3.18.14-1
kmod-ipt-nat - 3.18.14-1
kmod-ipv6 - 3.18.14-1
kmod-leds-gpio - 3.18.14-1
kmod-ledtrig-usbdev - 3.18.14-1
kmod-lib-crc-ccitt - 3.18.14-1
kmod-lib-crc-itu-t - 3.18.14-1
kmod-mac80211 - 3.18.14+2015-03-09-3
kmod-nf-conntrack - 3.18.14-1
kmod-nf-conntrack6 - 3.18.14-1
kmod-nf-ipt - 3.18.14-1
kmod-nf-ipt6 - 3.18.14-1
kmod-nf-nat - 3.18.14-1
kmod-nf-nathelper - 3.18.14-1
kmod-nls-base - 3.18.14-1
kmod-ppp - 3.18.14-1
kmod-pppoe - 3.18.14-1
kmod-pppox - 3.18.14-1
kmod-rt2800-lib - 3.18.14+2015-03-09-3
kmod-rt2800-mmio - 3.18.14+2015-03-09-3
kmod-rt2800-pci - 3.18.14+2015-03-09-3
kmod-rt2800-soc - 3.18.14+2015-03-09-3
kmod-rt2x00-lib - 3.18.14+2015-03-09-3
kmod-rt2x00-mmio - 3.18.14+2015-03-09-3
kmod-rt2x00-pci - 3.18.14+2015-03-09-3
kmod-slhc - 3.18.14-1
kmod-usb-core - 3.18.14-1
kmod-usb-ohci - 3.18.14-1
kmod-usb2 - 3.18.14-1
libblobmsg-json - 2015-05-08-a8e70c6d361967a23977417fb7d6cf56234f8b81
libc - 0.9.33.2-1
libgcc - 4.8-linaro-1
libip4tc - 1.4.21-1
libip6tc - 1.4.21-1
libiwinfo - 2015-05-26-e8a1e7d224918ba23fe0cd125e70907cb31aea31
libiwinfo-lua - 2015-06-01-ade8b1b299cbd5748db1acf80dd3e9f567938371
libjson-c - 0.12-1
libjson-script - 2015-05-08-a8e70c6d361967a23977417fb7d6cf56234f8b81
liblua - 5.1.5-1
libnl-tiny - 0.1-4
libpolarssl - 1.3.11-1
libubox - 2015-05-08-a8e70c6d361967a23977417fb7d6cf56234f8b81
libubus - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e
libubus-lua - 2015-07-07-7ec9b8dec77b969bfc860995f96fe91fd40ba5e4
libuci - 2015-04-09.1-1
libuci-lua - 2015-04-09.1-1
libustream-polarssl - 2015-07-09-c2d73c22618e8ee444e8d346695eca908ecb72d3
libxtables - 1.4.21-1
lua - 5.1.5-1
luci - git-15.196.77296-3610f32-1
luci-app-firewall - git-15.196.77296-3610f32-1
luci-base - git-15.196.77296-3610f32-1
luci-lib-ip - git-15.196.77296-3610f32-1
luci-lib-nixio - git-15.196.77296-3610f32-1
luci-mod-admin-full - git-15.196.77296-3610f32-1
luci-proto-ipv6 - git-15.196.77296-3610f32-1
luci-proto-ppp - git-15.196.77296-3610f32-1
luci-theme-bootstrap - git-15.196.77296-3610f32-1
mtd - 20
netifd - 2015-05-26-5990d1126fd33665e106508ebcbadfbb2d703d8e
odhcp6c - 2015-05-19-68042ddafe0e1a3498b6c7a57ec8d2d20f25650b
odhcpd - 2015-05-21-2ebf6c8216287983779c8ec6597d30893b914a7c
opkg - 9c97d5ecd795709c8584e972bfdf3aee3a5b846d-7
ppp - 2.4.7-5
ppp-mod-pppoe - 2.4.7-5
procd - 2015-05-23-a771644fd3a3ac055ec0c62fbe434aed0df002fe
px5g - 3
rpcd - 2015-07-15-410802e106184d15805c5a66830d3072bd58ce30
swconfig - 10
ubox - 2015-05-22-ab5b47397cc143798ba2f367f04579e5b5b82070
ubus - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e
ubusd - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e
uci - 2015-04-09.1-1
uhttpd - 2015-05-31-daeea305298197bb50c1e63cdd842ee1d9461d80
uhttpd-mod-ubus - 2015-05-31-daeea305298197bb50c1e63cdd842ee1d9461d80
usign - 2015-05-08-cf8dcdb8a4e874c77f3e9a8e9b643e8c17b19131
wpad-mini - 2015-03-25-1
root@OpenWrt:~# opkg list-installed | grep ssl
libpolarssl - 1.3.11-1
libustream-polarssl - 2015-07-09-c2d73c22618e8ee444e8d346695eca908ecb72d3
root@OpenWrt:~# opkg remove libpolarssl
No packages removed.
Collected errors:
* print_dependents_warning: Package libpolarssl is depended upon by packages:
* print_dependents_warning: libustream-polarssl
* print_dependents_warning: px5g
* print_dependents_warning: These might cease to work if package libpolarssl is removed.
* print_dependents_warning: Force removal of this package with --force-depends.
* print_dependents_warning: Force removal of this package and its dependents
* print_dependents_warning: with --force-removal-of-dependent-packages.
root@OpenWrt:~# opkg remove libust
root@OpenWrt:~# opkg remove libustream-polarssl
Removing package libustream-polarssl from root...
root@OpenWrt:~# opkg remove libpolarssl
No packages removed.
Collected errors:
* print_dependents_warning: Package libpolarssl is depended upon by packages:
* print_dependents_warning: px5g
* print_dependents_warning: These might cease to work if package libpolarssl is removed.
* print_dependents_warning: Force removal of this package with --force-depends.
* print_dependents_warning: Force removal of this package and its dependents
* print_dependents_warning: with --force-removal-of-dependent-packages.
root@OpenWrt:~# opkg remove libpolarssl
No packages removed.
Collected errors:
* print_dependents_warning: Package libpolarssl is depended upon by packages:
* print_dependents_warning: px5g
* print_dependents_warning: These might cease to work if package libpolarssl is removed.
* print_dependents_warning: Force removal of this package with --force-depends.
* print_dependents_warning: Force removal of this package and its dependents
* print_dependents_warning: with --force-removal-of-dependent-packages.
root@OpenWrt:~# opkg --force-removal-of-dependent-packages luci-ssl
opkg: unknown sub-command luci-ssl
usage: opkg [options...] sub-command [arguments...]
where sub-command is one of:
Package Manipulation:
update Update list of available packages
upgrade <pkgs> Upgrade packages
install <pkgs> Install package(s)
configure <pkgs> Configure unpacked package(s)
remove <pkgs|regexp> Remove package(s)
flag <flag> <pkgs> Flag package(s)
<flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)
Informational Commands:
list List available packages
list-installed List installed packages
list-upgradable List installed and upgradable packages
list-changed-conffiles List user modified configuration files
files <pkg> List files belonging to <pkg>
search <file|regexp> List package providing <file>
find <regexp> List packages whose name or description matches <regexp>
info [pkg|regexp] Display all info for <pkg>
status [pkg|regexp] Display all status for <pkg>
download <pkg> Download <pkg> to current directory
compare-versions <v1> <op> <v2>
compare versions using <= < > >= = << >>
print-architecture List installable package architectures
depends [-A] [pkgname|pat]+
whatdepends [-A] [pkgname|pat]+
whatdependsrec [-A] [pkgname|pat]+
whatrecommends[-A] [pkgname|pat]+
whatsuggests[-A] [pkgname|pat]+
whatprovides [-A] [pkgname|pat]+
whatconflicts [-A] [pkgname|pat]+
whatreplaces [-A] [pkgname|pat]+
Options:
-A Query all packages not just those installed
-V[<level>] Set verbosity level to <level>.
--verbosity[=<level>] Verbosity levels:
0 errors only
1 normal messages (default)
2 informative messages
3 debug
4 debug level 2
-f <conf_file> Use <conf_file> as the opkg configuration file
--conf <conf_file>
--cache <directory> Use a package cache
-d <dest_name> Use <dest_name> as the the root directory for
--dest <dest_name> package installation, removal, upgrading.
<dest_name> should be a defined dest name from
the configuration file, (but can also be a
directory name in a pinch).
-o <dir> Use <dir> as the root directory for
--offline-root <dir> offline installation of packages.
--add-arch <arch>:<prio> Register architecture with given priority
--add-dest <name>:<path> Register destination with given path
Force Options:
--force-depends Install/remove despite failed dependencies
--force-maintainer Overwrite preexisting config files
--force-reinstall Reinstall package(s)
--force-overwrite Overwrite files from other package(s)
--force-downgrade Allow opkg to downgrade packages
--force-space Disable free space checks
--force-postinstall Run postinstall scripts even in offline mode
--force-remove Remove package even if prerm script fails
--force-checksum Don't fail on checksum mismatches
--noaction No action -- test only
--download-only No action -- download only
--nodeps Do not follow dependencies
--nocase Perform case insensitive pattern matching
--force-removal-of-dependent-packages
Remove package and all dependencies
--autoremove Remove packages that were installed
automatically to satisfy dependencies
-t Specify tmp-dir.
--tmp-dir Specify tmp-dir.
regexp could be something like 'pkgname*' '*file*' or similar
e.g. opkg info 'libstd*' or opkg search '*libop*' or opkg remove 'libncur*'
root@OpenWrt:~# opkg remove luci
Removing package luci from root...
root@OpenWrt:~# opkg install luci
Installing luci (git-15.196.77296-3610f32-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/luci/luci_git-15.196.77296-3610f32-1_all.ipk.
Configuring luci.
root@OpenWrt:~# /etc/init.d/uhttpd start
root@OpenWrt:~# telnet localhost 80
telnet: can't connect to remote host (127.0.0.1): Connection refused
root@OpenWrt:~# telnet localhost 80
root@OpenWrt:~# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 OpenWrt.lan:ssh seaborgium.lan:57449 ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 6 [ ] DGRAM 930 /dev/log
unix 3 [ ] STREAM CONNECTED 283 /var/run/ubus.sock
unix 3 [ ] STREAM CONNECTED 282
unix 2 [ ] DGRAM 1216
unix 3 [ ] STREAM CONNECTED 1001
unix 2 [ ] DGRAM 1463
unix 3 [ ] STREAM CONNECTED 932
unix 3 [ ] STREAM CONNECTED 933 /var/run/ubus.sock
unix 3 [ ] STREAM CONNECTED 1214 /var/run/ubus.sock
unix 3 [ ] STREAM CONNECTED 1002 /var/run/ubus.sock
unix 2 [ ] DGRAM 1259
unix 2 [ ] DGRAM 1286
unix 2 [ ] DGRAM 1982
unix 3 [ ] STREAM CONNECTED 1213
root@OpenWrt:~# netstat -nal
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 192.168.10.1:22 192.168.10.173:57449 ESTABLISHED
tcp 0 0 :::53 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
udp 0 0 0.0.0.0:53 0.0.0.0:*
udp 0 0 0.0.0.0:67 0.0.0.0:*
udp 0 0 :::546 :::*
udp 0 0 :::547 :::*
udp 0 0 :::53 :::*
raw 0 0 ::%4556988:58 :::* 58
raw 0 0 ::%4556988:58 :::* 58
raw 0 0 ::%4556988:58 :::* 58
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 280 /var/run/ubus.sock
unix 6 [ ] DGRAM 930 /dev/log
unix 3 [ ] STREAM CONNECTED 283 /var/run/ubus.sock
unix 3 [ ] STREAM CONNECTED 282
unix 2 [ ] DGRAM 1216
unix 3 [ ] STREAM CONNECTED 1001
unix 2 [ ] DGRAM 1463
unix 3 [ ] STREAM CONNECTED 932
unix 3 [ ] STREAM CONNECTED 933 /var/run/ubus.sock
unix 3 [ ] STREAM CONNECTED 1214 /var/run/ubus.sock
unix 3 [ ] STREAM CONNECTED 1002 /var/run/ubus.sock
unix 2 [ ] DGRAM 1259
unix 2 [ ] DGRAM 1286
unix 2 [ ] DGRAM 1982
unix 3 [ ] STREAM CONNECTED 1213
root@OpenWrt:~# opkg install lua
Package lua (5.1.5-1) installed in root is up to date.
root@OpenWrt:~# telnet localhost 80
telnet: can't connect to remote host (127.0.0.1): Connection refused
root@OpenWrt:~# opkg install lubuci-lua
^[[AUnknown package 'lubuci-lua'.
Collected errors:
* opkg_install_cmd: Cannot install package lubuci-lua.
root@OpenWrt:~# opkg install libuci-lua
Package libuci-lua (2015-04-09.1-1) installed in root is up to date.
root@OpenWrt:~# opkg list-installed
base-files - 157-r45770
busybox - 1.23.2-1
dnsmasq - 2.73rc8-1
dropbear - 2015.67-1
firewall - 2015-05-26
fstools - 2015-05-24-09027fc86babc3986027a0e677aca1b6999a9e14
hostapd-common - 2015-03-25-1
ip6tables - 1.4.21-1
iptables - 1.4.21-1
iw - 3.17-1
iwinfo - 2015-05-26-e8a1e7d224918ba23fe0cd125e70907cb31aea31
jshn - 2015-05-08-a8e70c6d361967a23977417fb7d6cf56234f8b81
jsonfilter - 2014-06-19-cdc760c58077f44fc40adbbe41e1556a67c1b9a9
kernel - 3.18.14-1-fc0c25a3c686461daa6a498969b26c69
kmod-cfg80211 - 3.18.14+2015-03-09-3
kmod-crypto-aes - 3.18.14-1
kmod-crypto-arc4 - 3.18.14-1
kmod-crypto-core - 3.18.14-1
kmod-eeprom-93cx6 - 3.18.14-1
kmod-gpio-button-hotplug - 3.18.14-1
kmod-ip6tables - 3.18.14-1
kmod-ipt-conntrack - 3.18.14-1
kmod-ipt-core - 3.18.14-1
kmod-ipt-nat - 3.18.14-1
kmod-ipv6 - 3.18.14-1
kmod-leds-gpio - 3.18.14-1
kmod-ledtrig-usbdev - 3.18.14-1
kmod-lib-crc-ccitt - 3.18.14-1
kmod-lib-crc-itu-t - 3.18.14-1
kmod-mac80211 - 3.18.14+2015-03-09-3
kmod-nf-conntrack - 3.18.14-1
kmod-nf-conntrack6 - 3.18.14-1
kmod-nf-ipt - 3.18.14-1
kmod-nf-ipt6 - 3.18.14-1
kmod-nf-nat - 3.18.14-1
kmod-nf-nathelper - 3.18.14-1
kmod-nls-base - 3.18.14-1
kmod-ppp - 3.18.14-1
kmod-pppoe - 3.18.14-1
kmod-pppox - 3.18.14-1
kmod-rt2800-lib - 3.18.14+2015-03-09-3
kmod-rt2800-mmio - 3.18.14+2015-03-09-3
kmod-rt2800-pci - 3.18.14+2015-03-09-3
kmod-rt2800-soc - 3.18.14+2015-03-09-3
kmod-rt2x00-lib - 3.18.14+2015-03-09-3
kmod-rt2x00-mmio - 3.18.14+2015-03-09-3
kmod-rt2x00-pci - 3.18.14+2015-03-09-3
kmod-slhc - 3.18.14-1
kmod-usb-core - 3.18.14-1
kmod-usb-ohci - 3.18.14-1
kmod-usb2 - 3.18.14-1
libblobmsg-json - 2015-05-08-a8e70c6d361967a23977417fb7d6cf56234f8b81
libc - 0.9.33.2-1
libgcc - 4.8-linaro-1
libip4tc - 1.4.21-1
libip6tc - 1.4.21-1
libiwinfo - 2015-05-26-e8a1e7d224918ba23fe0cd125e70907cb31aea31
libiwinfo-lua - 2015-06-01-ade8b1b299cbd5748db1acf80dd3e9f567938371
libjson-c - 0.12-1
libjson-script - 2015-05-08-a8e70c6d361967a23977417fb7d6cf56234f8b81
liblua - 5.1.5-1
libnl-tiny - 0.1-4
libpolarssl - 1.3.11-1
libubox - 2015-05-08-a8e70c6d361967a23977417fb7d6cf56234f8b81
libubus - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e
libubus-lua - 2015-07-07-7ec9b8dec77b969bfc860995f96fe91fd40ba5e4
libuci - 2015-04-09.1-1
libuci-lua - 2015-04-09.1-1
libxtables - 1.4.21-1
lua - 5.1.5-1
luci - git-15.196.77296-3610f32-1
luci-app-firewall - git-15.196.77296-3610f32-1
luci-base - git-15.196.77296-3610f32-1
luci-lib-ip - git-15.196.77296-3610f32-1
luci-lib-nixio - git-15.196.77296-3610f32-1
luci-mod-admin-full - git-15.196.77296-3610f32-1
luci-proto-ipv6 - git-15.196.77296-3610f32-1
luci-proto-ppp - git-15.196.77296-3610f32-1
luci-theme-bootstrap - git-15.196.77296-3610f32-1
mtd - 20
netifd - 2015-05-26-5990d1126fd33665e106508ebcbadfbb2d703d8e
odhcp6c - 2015-05-19-68042ddafe0e1a3498b6c7a57ec8d2d20f25650b
odhcpd - 2015-05-21-2ebf6c8216287983779c8ec6597d30893b914a7c
opkg - 9c97d5ecd795709c8584e972bfdf3aee3a5b846d-7
ppp - 2.4.7-5
ppp-mod-pppoe - 2.4.7-5
procd - 2015-05-23-a771644fd3a3ac055ec0c62fbe434aed0df002fe
px5g - 3
rpcd - 2015-07-15-410802e106184d15805c5a66830d3072bd58ce30
swconfig - 10
ubox - 2015-05-22-ab5b47397cc143798ba2f367f04579e5b5b82070
ubus - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e
ubusd - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e
uci - 2015-04-09.1-1
uhttpd - 2015-05-31-daeea305298197bb50c1e63cdd842ee1d9461d80
uhttpd-mod-ubus - 2015-05-31-daeea305298197bb50c1e63cdd842ee1d9461d80
usign - 2015-05-08-cf8dcdb8a4e874c77f3e9a8e9b643e8c17b19131
wpad-mini - 2015-03-25-1
root@OpenWrt:~# /etc/init.d/firewall stop
Warning: Unable to locate ipset utility, disabling ipset support
* Flushing IPv4 filter table
* Flushing IPv4 nat table
* Flushing IPv4 mangle table
* Flushing IPv4 raw table
* Flushing IPv6 filter table
* Flushing IPv6 mangle table
* Flushing IPv6 raw table
* Flushing conntrack table ...
root@OpenWrt:~# telnet localhost 80
telnet: can't connect to remote host (127.0.0.1): Connection refused
root@OpenWrt:~# /etc/init.d/uhttpd start
root@OpenWrt:~# telnet localhost 80
telnet: can't connect to remote host (127.0.0.1): Connection refused
root@OpenWrt:~# netstat -nal
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 192.168.10.1:22 192.168.10.173:57449 ESTABLISHED
tcp 0 0 :::53 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
udp 0 0 0.0.0.0:53 0.0.0.0:*
udp 0 0 0.0.0.0:67 0.0.0.0:*
udp 0 0 :::546 :::*
udp 0 0 :::547 :::*
udp 0 0 :::53 :::*
raw 0 0 ::%4556988:58 :::* 58
raw 0 0 ::%4556988:58 :::* 58
raw 0 0 ::%4556988:58 :::* 58
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 280 /var/run/ubus.sock
unix 6 [ ] DGRAM 930 /dev/log
unix 3 [ ] STREAM CONNECTED 283 /var/run/ubus.sock
unix 3 [ ] STREAM CONNECTED 282
unix 2 [ ] DGRAM 1216
unix 3 [ ] STREAM CONNECTED 1001
unix 2 [ ] DGRAM 1463
unix 3 [ ] STREAM CONNECTED 932
unix 3 [ ] STREAM CONNECTED 933 /var/run/ubus.sock
unix 3 [ ] STREAM CONNECTED 1214 /var/run/ubus.sock
unix 3 [ ] STREAM CONNECTED 1002 /var/run/ubus.sock
unix 2 [ ] DGRAM 1259
unix 2 [ ] DGRAM 1286
unix 2 [ ] DGRAM 1982
unix 3 [ ] STREAM CONNECTED 1213
root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 4.7M 1.1M 3.6M 23% /
/dev/root 2.0M 2.0M 0 100% /rom
tmpfs 30.0M 624.0K 29.3M 2% /tmp
/dev/mtdblock6 4.7M 1.1M 3.6M 23% /overlay
overlayfs:/overlay 4.7M 1.1M 3.6M 23% /
tmpfs 512.0K 0 512.0K 0% /dev
root@OpenWrt:~# ping google.com
PING google.com (216.58.219.46): 56 data bytes
64 bytes from 216.58.219.46: seq=0 ttl=50 time=21.860 ms
^C
--- google.com ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 21.860/21.860/21.860 ms
root@OpenWrt:~# opkg install uhci
Unknown package 'uhci'.
Collected errors:
* opkg_install_cmd: Cannot install package uhci.
root@OpenWrt:~# opkg install kmod-usb-uhci
Installing kmod-usb-uhci (3.18.18-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/base/kmod-usb-uhci_3.18.18-1_ramips_24kec.ipk.
Multiple packages (kmod-usb-core and kmod-usb-core) providing same name marked HOLD or PREFER. Using latest.
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-uhci:
* kernel (= 3.18.18-1-aaf6e46c520074e013be98ada145fa8a) *
* opkg_install_cmd: Cannot install package kmod-usb-uhci.
root@OpenWrt:~# opkg install luci-ssl
Installing luci-ssl (git-15.196.77296-3610f32-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/luci/luci-ssl_git-15.196.77296-3610f32-1_all.ipk.
Installing libustream-polarssl (2015-07-09-c2d73c22618e8ee444e8d346695eca908ecb72d3) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/base/libustream-polarssl_2015-07-09-c2d73c22618e8ee444e8d346695eca908ecb72d3_ramips_24kec.ipk.
Configuring libustream-polarssl.
Configuring luci-ssl.
root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 4.7M 1.1M 3.6M 24% /
/dev/root 2.0M 2.0M 0 100% /rom
tmpfs 30.0M 624.0K 29.3M 2% /tmp
/dev/mtdblock6 4.7M 1.1M 3.6M 24% /overlay
overlayfs:/overlay 4.7M 1.1M 3.6M 24% /
tmpfs 512.0K 0 512.0K 0% /dev
root@OpenWrt:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 4800 1132 3668 24% /
/dev/root 2048 2048 0 100% /rom
tmpfs 30676 624 30052 2% /tmp
/dev/mtdblock6 4800 1132 3668 24% /overlay
overlayfs:/overlay 4800 1132 3668 24% /
tmpfs 512 0 512 0% /dev
root@OpenWrt:~# /etc/uci-defaults/
root@OpenWrt:~# cd /etc/init.d/
root@OpenWrt:/etc/init.d# ls -l
-rwxr-xr-x 1 root root 1474 May 12 14:21 boot
-rwxr-xr-x 1 root root 741 May 27 19:05 cron
-rwxr-xr-x 1 root root 15393 May 27 18:55 dnsmasq
-rwxr-xr-x 1 root root 255 May 12 14:21 done
-rwxr-xr-x 1 root root 4254 May 27 18:56 dropbear
-rwxr-xr-x 1 root root 997 May 27 09:29 firewall
-rwxr-xr-x 1 root root 2137 May 12 14:21 led
-rwxr-xr-x 1 root root 2301 May 27 09:09 log
-rwxr-xr-x 1 root root 2760 May 12 14:21 network
-rwxr-xr-x 1 root root 244 May 27 17:32 odhcpd
-rwxr-xr-x 1 root root 249 Jul 19 14:59 rpcd
-rwxr-xr-x 1 root root 125 May 12 14:21 sysctl
-rwxr-xr-x 1 root root 247 May 12 14:21 sysfixtime
-rwxr-xr-x 1 root root 885 May 27 19:05 sysntpd
-rwxr-xr-x 1 root root 1025 May 12 14:21 system
-rwxr-xr-x 1 root root 926 May 27 19:05 telnet
-rwxr-xr-x 1 root root 3617 Jul 19 14:59 uhttpd
-rwxr-xr-x 1 root root 106 May 12 14:21 umount
root@OpenWrt:/etc/init.d# vim uhttpd
root@OpenWrt:/etc/init.d# /sbin/
askfirst halt ifstatus kmodloader mkswap poweroff rpcd switch_root udevtrigger
devmem hotplug-call ifup led.sh mount_root procd snapshot sysctl udhcpc
devstatus hwclock init logd mtd reboot snapshot_tool sysupgrade validate_data
firstboot ifconfig jffs2mark logread netifd reload_config start-stop-daemon ubusd vconfig
fw3 ifdown jffs2reset luci-reload pivot_root route swconfig uci wifi
root@OpenWrt:/etc/init.d# /sbin/c
root@OpenWrt:/etc/init.d# ./uhttpd start
/etc/rc.common: eval: line 1: /usr/sbin/px5g: not found
mv: can't rename '/etc/uhttpd.key.new': No such file or directory
mv: can't rename '/etc/uhttpd.crt.new': No such file or directory
root@OpenWrt:/etc/init.d# grep rename *
root@OpenWrt:/etc/init.d# gren key *
-ash: gren: not found
root@OpenWrt:/etc/init.d# grep key *
dropbear: 'rsakeyfile:file' \
dropbear: 'dsskeyfile:file' \
dropbear: RootPasswordAuth RootLogin rsakeyfile \
dropbear: dsskeyfile BannerFile Port SSHKeepAlive IdleTimeout \
dropbear: [ -n "${rsakeyfile}" ] && procd_append_param command -r "${rsakeyfile}"
dropbear: [ -n "${dsskeyfile}" ] && procd_append_param command -d "${dsskeyfile}"
dropbear:keygen()
dropbear: for keytype in rsa dss; do
dropbear: # check for keys
dropbear: key=dropbear/dropbear_${keytype}_host_key
dropbear: [ -f /tmp/$key -o -s /etc/$key ] || {
dropbear: # generate missing keys
dropbear: [ -x /usr/bin/dropbearkey ] && {
dropbear: /usr/bin/dropbearkey -t $keytype -f /tmp/$key 2>&- >&- && exec /etc/rc.common "$initscript" start
dropbear: [ -s /etc/dropbear/dropbear_rsa_host_key -a \
dropbear: -s /etc/dropbear/dropbear_dss_host_key ] || keygen
telnet:has_ssh_pubkey() {
telnet: ( /etc/init.d/dropbear enabled 2> /dev/null && grep -qs "^ssh-" /etc/dropbear/authorized_keys ) || \
telnet: ( /etc/init.d/sshd enabled 2> /dev/null && grep -qs "^ssh-" "$(get_root_home /etc/passwd)"/.ssh/authorized_keys )
telnet: if ( ! has_ssh_pubkey && \
uhttpd:generate_keys() {
uhttpd: local key="$2"
uhttpd: -days ${days:-730} -newkey rsa:${bits:-1024} -keyout "${UHTTPD_KEY}.new" -out "${UHTTPD_CERT}.new" \
uhttpd: config_get UHTTPD_KEY "$cfg" key /etc/uhttpd.key
uhttpd: config_foreach generate_keys cert
uhttpd: append_arg "$cfg" key "-K"
root@OpenWrt:/etc/init.d# cd /etc/
root@OpenWrt:/etc# ls
TZ crontabs ethers hotplug.d mtab passwd- rc.common shadow-
banner device_info firewall.user hotplug.json openwrt_release ppp rc.d shells
banner.failsafe diag.sh fstab init.d openwrt_version preinit rc.local sysctl.conf
board.d dnsmasq.conf group inittab opkg profile resolv.conf sysupgrade.conf
board.json dnsmasq.time hosts modules-boot.d opkg.conf protocols services uci-defaults
config dropbear hotplug-preinit.json modules.d passwd rc.button shadow
root@OpenWrt:/etc# ls -l
lrwxrwxrwx 1 root root 7 May 27 19:09 TZ -> /tmp/TZ
-rw-r--r-- 1 root root 662 May 27 09:14 banner
-rw-r--r-- 1 root root 408 May 12 14:21 banner.failsafe
drwxr-xr-x 2 root root 48 May 27 19:09 board.d
-rw-r--r-- 1 root root 497 May 27 19:05 board.json
drwxr-xr-x 1 root root 0 Jul 21 06:06 config
drwxr-xr-x 2 root root 3 May 27 09:14 crontabs
-rw-r--r-- 1 root root 76 May 27 09:14 device_info
-rw-r--r-- 1 root root 4240 May 24 07:49 diag.sh
-rw-r--r-- 1 root root 1368 May 27 18:55 dnsmasq.conf
-rw-r--r-- 1 nobody nogroup 0 May 27 19:05 dnsmasq.time
drwx------ 1 root root 0 May 27 19:05 dropbear
-rw-r--r-- 1 root root 0 May 27 19:05 ethers
-rw-r--r-- 1 root root 352 May 27 09:29 firewall.user
lrwxrwxrwx 1 root root 10 May 27 19:09 fstab -> /tmp/fstab
-rw-r--r-- 1 root root 123 May 12 14:21 group
-rw-r--r-- 1 root root 20 May 12 14:21 hosts
-rw-r--r-- 1 root root 326 May 27 09:14 hotplug-preinit.json
drwxr-xr-x 6 root root 66 May 27 09:29 hotplug.d
-rw-r--r-- 1 root root 1657 May 27 09:14 hotplug.json
drwxr-xr-x 1 root root 0 Jul 21 06:06 init.d
-rw-r--r-- 1 root root 101 May 12 14:21 inittab
drwxr-xr-x 2 root root 118 May 27 19:09 modules-boot.d
drwxr-xr-x 2 root root 520 May 27 19:09 modules.d
lrwxrwxrwx 1 root root 12 May 27 19:09 mtab -> /proc/mounts
-rw-r--r-- 1 root root 210 May 27 09:14 openwrt_release
-rw-r--r-- 1 root root 7 May 27 09:14 openwrt_version
drwxr-xr-x 3 root root 27 May 27 19:09 opkg
-rw-r--r-- 1 root root 840 May 27 19:04 opkg.conf
-rw-r--r-- 1 root root 190 May 27 19:25 passwd
-rw-r--r-- 1 root root 190 May 12 14:21 passwd-
drwxr-xr-x 2 root root 83 May 27 19:09 ppp
-rwxr-xr-x 1 root root 952 May 12 14:21 preinit
-rw-r--r-- 1 root root 530 May 12 14:21 profile
-rw-r--r-- 1 root root 2478 May 12 14:21 protocols
drwxr-xr-x 2 root root 71 May 27 19:09 rc.button
-rwxr-xr-x 1 root root 2407 May 12 14:21 rc.common
drwxr-xr-x 1 root root 0 Jul 21 06:07 rc.d
-rw-r--r-- 1 root root 132 May 12 14:21 rc.local
lrwxrwxrwx 1 root root 16 May 27 19:09 resolv.conf -> /tmp/resolv.conf
-rw-r--r-- 1 root root 3017 May 12 14:21 services
-rw------- 1 root root 153 May 27 19:25 shadow
-rw------- 1 root root 115 May 12 14:21 shadow-
-rw-r--r-- 1 root root 9 May 12 14:21 shells
-rw-r--r-- 1 root root 872 May 12 14:21 sysctl.conf
-rw-r--r-- 1 root root 128 May 12 14:21 sysupgrade.conf
drwxrwxr-x 1 root root 0 Jul 21 06:06 uci-defaults
root@OpenWrt:/etc# /etc/init.d/uhttpd start
/etc/rc.common: eval: line 1: /usr/sbin/px5g: not found
mv: can't rename '/etc/uhttpd.key.new': No such file or directory
mv: can't rename '/etc/uhttpd.crt.new': No such file or directory
root@OpenWrt:/etc# touch /etc/uhttpd.key.new
root@OpenWrt:/etc# touch /etc/uhttpd.crt.new
root@OpenWrt:/etc# /etc/init.d/uhttpd start
/etc/rc.common: eval: line 1: /usr/sbin/px5g: not found
root@OpenWrt:/etc# opkg whatprovides px5g
What provides px5g
px5g
root@OpenWrt:/etc# o
odhcp6c odhcpd odhcpd-update opkg opkg-key
root@OpenWrt:/etc# opkg install px5g
Package px5g (3) installed in root is up to date.
root@OpenWrt:/etc# /usr/sbin/p
pppd px5g
root@OpenWrt:/etc# /usr/sbin/p
pppd px5g
root@OpenWrt:/etc# /usr/sbin/px5g
-ash: /usr/sbin/px5g: not found
root@OpenWrt:/etc# vim /usr/sbin/px5g
root@OpenWrt:/etc# opkg install lua
Package lua (5.1.5-1) installed in root is up to date.
root@OpenWrt:/etc# opkg install liblua
Package liblua (5.1.5-1) installed in root is up to date.
root@OpenWrt:/etc# opkg install libuci-lua
Package libuci-lua (2015-04-09.1-1) installed in root is up to date.
root@OpenWrt:/etc# uci show uhttpd
uhttpd.main=uhttpd
uhttpd.main.listen_http='0.0.0.0:80' '[::]:80'
uhttpd.main.listen_https='0.0.0.0:443' '[::]:443'
uhttpd.main.redirect_https='1'
uhttpd.main.home='/www'
uhttpd.main.rfc1918_filter='1'
uhttpd.main.max_requests='3'
uhttpd.main.max_connections='100'
uhttpd.main.cert='/etc/uhttpd.crt'
uhttpd.main.key='/etc/uhttpd.key'
uhttpd.main.cgi_prefix='/cgi-bin'
uhttpd.main.script_timeout='60'
uhttpd.main.network_timeout='30'
uhttpd.main.http_keepalive='20'
uhttpd.main.tcp_keepalive='1'
uhttpd.main.ubus_prefix='/ubus'
uhttpd.px5g=cert
uhttpd.px5g.days='730'
uhttpd.px5g.bits='1024'
uhttpd.px5g.country='DE'
uhttpd.px5g.state='Berlin'
uhttpd.px5g.location='Berlin'
uhttpd.px5g.commonname='OpenWrt'
root@OpenWrt:/etc# uci delete uhttpd.main.ubus_prefix
root@OpenWrt:/etc# /etc/init.d/uhttpd start
/etc/rc.common: eval: line 1: /usr/sbin/px5g: not found
mv: can't rename '/etc/uhttpd.key.new': No such file or directory
mv: can't rename '/etc/uhttpd.crt.new': No such file or directory
root@OpenWrt:/etc# opkg remove luci-ssl
Removing package luci-ssl from root...
root@OpenWrt:/etc# opkg remove luci
Removing package luci from root...
root@OpenWrt:/etc# open install
root@OpenWrt:/etc# opkg install luci
Installing luci (git-15.196.77296-3610f32-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/mt7620/packages/luci/luci_git-15.196.77296-3610f32-1_all.ipk.
Configuring luci.
root@OpenWrt:/etc# /etc/init.d/uhttpd start
/etc/rc.common: eval: line 1: /usr/sbin/px5g: not found
mv: can't rename '/etc/uhttpd.key.new': No such file or directory
mv: can't rename '/etc/uhttpd.crt.new': No such file or directory
root@OpenWrt:/etc# which sh
/bin/sh
root@OpenWrt:/etc# uci show uhttpd.
uci: Invalid argument
root@OpenWrt:/etc# uci show uhttpd
uhttpd.main=uhttpd
uhttpd.main.listen_http='0.0.0.0:80' '[::]:80'
uhttpd.main.listen_https='0.0.0.0:443' '[::]:443'
uhttpd.main.redirect_https='1'
uhttpd.main.home='/www'
uhttpd.main.rfc1918_filter='1'
uhttpd.main.max_requests='3'
uhttpd.main.max_connections='100'
uhttpd.main.cert='/etc/uhttpd.crt'
uhttpd.main.key='/etc/uhttpd.key'
uhttpd.main.cgi_prefix='/cgi-bin'
uhttpd.main.script_timeout='60'
uhttpd.main.network_timeout='30'
uhttpd.main.http_keepalive='20'
uhttpd.main.tcp_keepalive='1'
uhttpd.px5g=cert
uhttpd.px5g.days='730'
uhttpd.px5g.bits='1024'
uhttpd.px5g.country='DE'
uhttpd.px5g.state='Berlin'
uhttpd.px5g.location='Berlin'
uhttpd.px5g.commonname='OpenWrt'
root@OpenWrt:/etc# uci
Usage: uci [<options>] <command> [<arguments>]
Commands:
batch
export [<config>]
import [<config>]
changes [<config>]
commit [<config>]
add <config> <section-type>
add_list <config>.<section>.<option>=<string>
del_list <config>.<section>.<option>=<string>
show [<config>[.<section>[.<option>]]]
get <config>.<section>[.<option>]
set <config>.<section>[.<option>]=<value>
delete <config>[.<section>[[.<option>][=<id>]]]
rename <config>.<section>[.<option>]=<name>
revert <config>[.<section>[.<option>]]
reorder <config>.<section>=<position>
Options:
-c <path> set the search path for config files (default: /etc/config)
-d <str> set the delimiter for list values in uci show
-f <file> use <file> as input instead of stdin
-m when importing, merge data into an existing package
-n name unnamed sections on export (default)
-N don't name unnamed sections
-p <path> add a search path for config change files
-P <path> add a search path for config change files and use as default
-q quiet mode (don't print error messages)
-s force strict mode (stop on parser errors, default)
-S disable strict mode
-X do not use extended syntax on 'show'
root@OpenWrt:/etc# uci show
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].boguspriv='1'
dhcp.@dnsmasq[0].filterwin2k='0'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.@dnsmasq[0].local='/lan/'
dhcp.@dnsmasq[0].domain='lan'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].nonegcache='0'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.auto'
dhcp.@dnsmasq[0].localservice='1'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='100'
dhcp.lan.limit='150'
dhcp.lan.leasetime='12h'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra='server'
dhcp.wan=dhcp
dhcp.wan.interface='wan'
dhcp.wan.ignore='1'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dropbear.@dropbear[0]=dropbear
dropbear.@dropbear[0].PasswordAuth='on'
dropbear.@dropbear[0].RootPasswordAuth='on'
dropbear.@dropbear[0].Port='22'
firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood='1'
firewall.@defaults[0].input='ACCEPT'
firewall.@defaults[0].output='ACCEPT'
firewall.@defaults[0].forward='REJECT'
firewall.@zone[0]=zone
firewall.@zone[0].name='lan'
firewall.@zone[0].network='lan'
firewall.@zone[0].input='ACCEPT'
firewall.@zone[0].output='ACCEPT'
firewall.@zone[0].forward='ACCEPT'
firewall.@zone[1]=zone
firewall.@zone[1].name='wan'
firewall.@zone[1].network='wan' 'wan6'
firewall.@zone[1].input='REJECT'
firewall.@zone[1].output='ACCEPT'
firewall.@zone[1].forward='REJECT'
firewall.@zone[1].masq='1'
firewall.@zone[1].mtu_fix='1'
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src='lan'
firewall.@forwarding[0].dest='wan'
firewall.@rule[0]=rule
firewall.@rule[0].name='Allow-DHCP-Renew'
firewall.@rule[0].src='wan'
firewall.@rule[0].proto='udp'
firewall.@rule[0].dest_port='68'
firewall.@rule[0].target='ACCEPT'
firewall.@rule[0].family='ipv4'
firewall.@rule[1]=rule
firewall.@rule[1].name='Allow-Ping'
firewall.@rule[1].src='wan'
firewall.@rule[1].proto='icmp'
firewall.@rule[1].icmp_type='echo-request'
firewall.@rule[1].family='ipv4'
firewall.@rule[1].target='ACCEPT'
firewall.@rule[2]=rule
firewall.@rule[2].name='Allow-IGMP'
firewall.@rule[2].src='wan'
firewall.@rule[2].proto='igmp'
firewall.@rule[2].family='ipv4'
firewall.@rule[2].target='ACCEPT'
firewall.@rule[3]=rule
firewall.@rule[3].name='Allow-DHCPv6'
firewall.@rule[3].src='wan'
firewall.@rule[3].proto='udp'
firewall.@rule[3].src_ip='fe80::/10'
firewall.@rule[3].src_port='547'
firewall.@rule[3].dest_ip='fe80::/10'
firewall.@rule[3].dest_port='546'
firewall.@rule[3].family='ipv6'
firewall.@rule[3].target='ACCEPT'
firewall.@rule[4]=rule
firewall.@rule[4].name='Allow-MLD'
firewall.@rule[4].src='wan'
firewall.@rule[4].proto='icmp'
firewall.@rule[4].src_ip='fe80::/10'
firewall.@rule[4].icmp_type='130/0' '131/0' '132/0' '143/0'
firewall.@rule[4].family='ipv6'
firewall.@rule[4].target='ACCEPT'
firewall.@rule[5]=rule
firewall.@rule[5].name='Allow-ICMPv6-Input'
firewall.@rule[5].src='wan'
firewall.@rule[5].proto='icmp'
firewall.@rule[5].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type' 'router-solicitation' 'neighbour-solicitation' 'router-advertisement' 'neighbour-advertisement'
firewall.@rule[5].limit='1000/sec'
firewall.@rule[5].family='ipv6'
firewall.@rule[5].target='ACCEPT'
firewall.@rule[6]=rule
firewall.@rule[6].name='Allow-ICMPv6-Forward'
firewall.@rule[6].src='wan'
firewall.@rule[6].dest='*'
firewall.@rule[6].proto='icmp'
firewall.@rule[6].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type'
firewall.@rule[6].limit='1000/sec'
firewall.@rule[6].family='ipv6'
firewall.@rule[6].target='ACCEPT'
firewall.@include[0]=include
firewall.@include[0].path='/etc/firewall.user'
luci.main=core
luci.main.lang='auto'
luci.main.resourcebase='/luci-static/resources'
luci.main.mediaurlbase='/luci-static/bootstrap'
luci.flash_keep=extern
luci.flash_keep.uci='/etc/config/'
luci.flash_keep.dropbear='/etc/dropbear/'
luci.flash_keep.openvpn='/etc/openvpn/'
luci.flash_keep.passwd='/etc/passwd'
luci.flash_keep.opkg='/etc/opkg.conf'
luci.flash_keep.firewall='/etc/firewall.user'
luci.flash_keep.uploads='/lib/uci/upload/'
luci.languages=internal
luci.sauth=internal
luci.sauth.sessionpath='/tmp/luci-sessions'
luci.sauth.sessiontime='3600'
luci.ccache=internal
luci.ccache.enable='1'
luci.themes=internal
luci.themes.Bootstrap='/luci-static/bootstrap'
network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd6e:bd0e:6c41::/48'
network.lan=interface
network.lan.ifname='eth0.1'
network.lan.force_link='1'
network.lan.macaddr='20:28:18:c0:cc:fa'
network.lan.type='bridge'
network.lan.proto='static'
network.lan.ipaddr='192.168.10.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.wan=interface
network.wan.ifname='eth0.2'
network.wan.force_link='1'
network.wan.macaddr='20:28:18:c0:cc:fb'
network.wan.proto='dhcp'
network.wan6=interface
network.wan6.ifname='eth0.2'
network.wan6.proto='dhcpv6'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='1 2 3 4 6t'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].ports='0 6t'
rpcd.@login[0]=login
rpcd.@login[0].username='root'
rpcd.@login[0].password='$p$root'
rpcd.@login[0].read='*'
rpcd.@login[0].write='*'
system.@system[0]=system
system.@system[0].hostname='OpenWrt'
system.@system[0].timezone='UTC'
system.ntp=timeserver
system.ntp.server='0.openwrt.pool.ntp.org' '1.openwrt.pool.ntp.org' '2.openwrt.pool.ntp.org' '3.openwrt.pool.ntp.org'
system.ntp.enabled='1'
system.ntp.enable_server='0'
system.led_power=led
system.led_power.name='power'
system.led_power.sysfs='nexx:blue:power'
system.led_power.default='0'
ucitrack.@network[0]=network
ucitrack.@network[0].init='network'
ucitrack.@network[0].affects='dhcp' 'radvd'
ucitrack.@wireless[0]=wireless
ucitrack.@wireless[0].affects='network'
ucitrack.@firewall[0]=firewall
ucitrack.@firewall[0].init='firewall'
ucitrack.@firewall[0].affects='luci-splash' 'qos' 'miniupnpd'
ucitrack.@olsr[0]=olsr
ucitrack.@olsr[0].init='olsrd'
ucitrack.@dhcp[0]=dhcp
ucitrack.@dhcp[0].init='dnsmasq'
ucitrack.@dhcp[0].affects='odhcpd'
ucitrack.@odhcpd[0]=odhcpd
ucitrack.@odhcpd[0].init='odhcpd'
ucitrack.@dropbear[0]=dropbear
ucitrack.@dropbear[0].init='dropbear'
ucitrack.@httpd[0]=httpd
ucitrack.@httpd[0].init='httpd'
ucitrack.@fstab[0]=fstab
ucitrack.@fstab[0].init='fstab'
ucitrack.@qos[0]=qos
ucitrack.@qos[0].init='qos'
ucitrack.@system[0]=system
ucitrack.@system[0].init='led'
ucitrack.@system[0].affects='luci_statistics'
ucitrack.@luci_splash[0]=luci_splash
ucitrack.@luci_splash[0].init='luci_splash'
ucitrack.@upnpd[0]=upnpd
ucitrack.@upnpd[0].init='miniupnpd'
ucitrack.@ntpclient[0]=ntpclient
ucitrack.@ntpclient[0].init='ntpclient'
ucitrack.@samba[0]=samba
ucitrack.@samba[0].init='samba'
ucitrack.@tinyproxy[0]=tinyproxy
ucitrack.@tinyproxy[0].init='tinyproxy'
ucitrack.@6relayd[0]=6relayd
ucitrack.@6relayd[0].init='6relayd'
uhttpd.main=uhttpd
uhttpd.main.listen_http='0.0.0.0:80' '[::]:80'
uhttpd.main.listen_https='0.0.0.0:443' '[::]:443'
uhttpd.main.redirect_https='1'
uhttpd.main.home='/www'
uhttpd.main.rfc1918_filter='1'
uhttpd.main.max_requests='3'
uhttpd.main.max_connections='100'
uhttpd.main.cert='/etc/uhttpd.crt'
uhttpd.main.key='/etc/uhttpd.key'
uhttpd.main.cgi_prefix='/cgi-bin'
uhttpd.main.script_timeout='60'
uhttpd.main.network_timeout='30'
uhttpd.main.http_keepalive='20'
uhttpd.main.tcp_keepalive='1'
uhttpd.px5g=cert
uhttpd.px5g.days='730'
uhttpd.px5g.bits='1024'
uhttpd.px5g.country='DE'
uhttpd.px5g.state='Berlin'
uhttpd.px5g.location='Berlin'
uhttpd.px5g.commonname='OpenWrt'
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.channel='11'
wireless.radio0.hwmode='11g'
wireless.radio0.path='10180000.wmac'
wireless.radio0.htmode='HT20'
wireless.radio0.disabled='1'
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device='radio0'
wireless.@wifi-iface[0].network='lan'
wireless.@wifi-iface[0].mode='ap'
wireless.@wifi-iface[0].ssid='OpenWrt'
wireless.@wifi-iface[0].encryption='none'
root@OpenWrt:/etc# uci show | grep ash
luci.flash_keep=extern
luci.flash_keep.uci='/etc/config/'
luci.flash_keep.dropbear='/etc/dropbear/'
luci.flash_keep.openvpn='/etc/openvpn/'
luci.flash_keep.passwd='/etc/passwd'
luci.flash_keep.opkg='/etc/opkg.conf'
luci.flash_keep.firewall='/etc/firewall.user'
luci.flash_keep.uploads='/lib/uci/upload/'
ucitrack.@firewall[0].affects='luci-splash' 'qos' 'miniupnpd'
ucitrack.@luci_splash[0]=luci_splash
ucitrack.@luci_splash[0].init='luci_splash'
root@OpenWrt:/etc# shutdown
-ash: shutdown: not found
root@OpenWrt:/etc#