Page 21 of 21 FirstFirst ... 11192021
Results 301 to 303 of 303

Thread: Сохранение настроек роутера в NVRAM и FlashFS

  1. #301
    Почему не сохранятся может:
    Code:
    [admin@WL-500gP_V2 root]$ cat /proc/sys/vm/min_free_kbytes
    721
    [admin@WL-500gP_V2 root]$ echo 3384 > /proc/sys/vm/min_free_kbytes
    [admin@WL-500gP_V2 root]$ cat /proc/sys/vm/min_free_kbytes
    3384
    [admin@WL-500gP_V2 root]$
    после ребута опять 721
    Code:
    [admin@WL-500gP_V2 root]$ flashfs save && flashfs commit && flashfs enable
    tar: removing leading '/' from member names
    tmp/local/
    tmp/local/etc/
    tmp/local/etc/dropbear/
    tmp/local/etc/dropbear/dropbear_dss_host_key
    tmp/local/etc/dropbear/dropbear_dss_host_key.pub
    tmp/local/etc/dropbear/dropbear_rsa_host_key
    tmp/local/etc/dropbear/dropbear_rsa_host_key.pub
    tmp/local/sbin/
    tmp/local/sbin/post-firewall
    tmp/local/sbin/post-boot
    tmp/local/sbin/post-mount
    tmp/local/root/
    tmp/local/root/.ssh/
    tmp/local/root/.ssh/authorized_keys
    tmp/local/root/.config/
    tmp/local/root/.config/transmission-daemon/
    tmp/local/root/.config/transmission-daemon/blocklists/
    tmp/local/root/.config/transmission-daemon/torrents/
    tmp/local/root/.config/transmission-daemon/resume/
    tmp/local/root/.config/transmission-daemon/settings.json
    tmp/local/root/.mc/
    tmp/local/root/.mc/cedit/
    tmp/local/root/.mc/panels.ini
    tmp/local/root/.mc/ini
    tmp/local/root/.mc/history
    tmp/local/root/.mc/Tree
    tmp/local/root/.mc/filepos
    tmp/local/root/nohup.out
    tmp/local/root/kdesktop
    -rw-r--r--    1 admin    root          6951 Nov 22 22:10 /tmp/flash.tar.gz
    Check saved image and type "/sbin/flashfs commit" to commit changes
    .
    Committed.
    [admin@WL-500gP_V2 root]$
    Last edited by МИНЗДРАВ; 22-11-2014 at 19:19.
    WL500gpv2-1.9.2.7-rtn-r4667

  2. #302
    Join Date
    Mar 2011
    Location
    Moscow
    Posts
    243
    Quote Originally Posted by МИНЗДРАВ View Post
    Почему не сохранятся может:
    Потому что это procfs :)
    WL500gp 1.9.2.7-d-r2624, Optware.

  3. #303

    Не сохраняются файлы после flashfs

    Не сохраняются файлы /usr/local/sbin/post-boot и usr/local/sbin/post-mount (прошивка от Vampik 3.0.6-r5066M если что)
    Мне кажется что проблема в самом flashfs
    Code:
    <------>save)
    <------><------>[ -f /usr/local/.files ] && FILES=$(/bin/grep -v ^# /usr/local/.files)
    <------><------>/bin/tar -C / -czvf /tmp/flash.tar.gz /tmp/local $FILES &&.
    <------><------>ls -l /tmp/flash.tar.gz &&
    <------><------>echo "Check saved image and type \"$0 commit\" to commit changes"
    <------><------>;;
    <------>commit)
    <------><------>/sbin/flash /tmp/flash.tar.gz $MTD &&
    <------><------>rm -f /tmp/flash.tar.gz &&
    <------><------>echo "Committed."
    <------><------>;;
    Мне кажется, там перед выделенным должна быть кака-ято команда типа cp. Или я не прав?

Page 21 of 21 FirstFirst ... 11192021

Similar Threads

  1. Внутренний и внешний IP адреса + DCHub
    By usmailer™ in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 141
    Last Post: 24-02-2013, 17:07
  2. Загрузка процессора и памяти роутера
    By djmefisto in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 257
    Last Post: 27-06-2012, 01:43
  3. Инструкция по настройке роутера WL-500gP с нуля
    By OlegI in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 1259
    Last Post: 10-02-2011, 22:25
  4. Replies: 1
    Last Post: 08-12-2010, 16:42

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •