aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin
Commit message (Collapse)AuthorAgeFilesLines
* base-files: Fix sysupgrade overlay savingJo-Philipp Wich2016-01-171-0/+1
| | | | | | | | | | A previous change to sysupgrade moved the overlay files into upper/ The -c switch generates a list of files to backup, but the sed calls did not take this into consideration. Signed-off-by: Rob Mosher <nyt-openwrt@countercultured.net> SVN-Revision: 48281
* base-files: sanitize and unify $PATHSteven Barth2015-10-021-1/+1
| | | | | | | | Previously init and hotplug paths were different from console. Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 47080
* base-files: add support for platform_pre_upgrade functionJohn Crispin2015-04-091-0/+8
| | | | | | | | | | | | | | | | Current NAND sysupgrade process is a bit hard to follow due to the way of triggering stage1. Currently this is done by leaving a /mark/ in the form of /tmp/sysupgrade-nand-path during nand_do_platform_check. Existence of this mark stops standard sysupgrade process (as the result of sysupgrade_pre_upgrade exit). This may be a bit misleading. Proposed solution adds a new function that will allow platform.sh trigger NAND sysupgrade consciously. This will also allow cleaning nand_do_platform_check limiting it to just checking the image. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45338
* base-files: firstboot: pass down arguments such as -y to jffs2resetLuka Perkov2015-03-101-1/+1
| | | | | | | | This brings back old behavior. Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 44651
* fix sysupgrade on overlayfs v23+Imre Kaloz2014-11-241-1/+6
| | | | | | Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 43365
* scripts: fix wrong usage of '==' operatorJohn Crispin2014-10-142-4/+4
| | | | | | | | | | | | | | [base-files] shell-scripting: fix wrong usage of '==' operator normally the '==' is used for invoking a regex parser and is a bashism. all of the fixes just want to compare a string. the used busybox-ash will silently "ignore" this mistake, but make it portable/clean at least. this patch does not change the behavior/logic of the scripts. Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> SVN-Revision: 42911
* sysupgrade: preserve symlinks in backupsJohn Crispin2014-10-061-2/+2
| | | | | | Signed-off-by: Catalin Patulea <catalinp@google.com> SVN-Revision: 42783
* procd: various cleanups to /lib/upgrade/nand.shJohn Crispin2014-06-161-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41222
* base-files: add an ugly hack for nand to sysupgradeJohn Crispin2014-06-111-0/+2
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41126
* /lib/functions.sh: move rarely used mtd and macaddr related functions to ↵Felix Fietkau2014-04-071-0/+1
| | | | | | | | /lib/functions/system.sh Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40411
* sysupgrade: do not kill any processes in failsafeJohn Crispin2014-01-171-3/+5
| | | | | | | | sysugrade killed the lock causing failsafe to stop Signed-off-by: Alexander Couzens <lynxis@fe80.eu> SVN-Revision: 39318
* /sbin/wifi: reload network/wireless on wifi restartFelix Fietkau2013-12-111-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39036
* base-files: fix whitespacesLuka Perkov2013-12-092-4/+4
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 39006
* wifi: restart netifd wifi interfaces on the "up" command like the old variantFelix Fietkau2013-12-021-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38990
* wifi: rename the "reload" (restarting non-netifd wifi) command to ↵Felix Fietkau2013-12-021-1/+7
| | | | | | | | | | "reload_legacy" Add a new "reload" command that reloads the netifd config as well Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38989
* netifd: add wireless configuration support and port mac80211 to the new ↵Felix Fietkau2013-12-021-7/+32
| | | | | | | | framework Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38988
* base-files: add the DEVICENAME variable for hotplug scriptsFelix Fietkau2013-11-191-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38861
* ar71xx: Unifi AP Pro sysupgrade patchFelix Fietkau2013-11-141-0/+1
| | | | | | | | | | | | | | | | | | The current implementation of mtd will not append the backup file created by sysupgrade to the correct partition, as mtd will append the data to first jffs2 partition it finds. As the kernel is also stored on a jffs2 partition (which resides before the overlay partition), the data will be appended to this partition. To fix this problem, a new option -s <number> skip the first n bytes when appending data to the jffs2 partiton, defaults to "0" is added to mtd. Signed-off-by: Peter Wagner <tripolar@gmx.at> SVN-Revision: 38807
* base-files: implement -l (--list-backup) sysupgrade parameter to list the ↵Jo-Philipp Wich2013-07-311-0/+14
| | | | | | files that would be backed up SVN-Revision: 37627
* base-files: abort sysupgrade if file specified with --restore-config is not ↵Jo-Philipp Wich2013-07-311-1/+6
| | | | | | found SVN-Revision: 37624
* base-files: implement -T (--test) sysupgrade parameter to verify image ↵Jo-Philipp Wich2013-07-301-1/+9
| | | | | | without actually flashing it SVN-Revision: 37620
* sysupgrade: create state file so procd knows when a sysupgrade is in progressJohn Crispin2013-06-101-0/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36893
* mount_root: prepare base-filesJohn Crispin2013-04-253-68/+3
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36429
* base-files: firstboot: only ask for confirmation on TTYJonas Gorski2013-03-271-4/+6
| | | | | | Also allow '-y' to force the reset. SVN-Revision: 36133
* base-files: make firstboot ask for confirmationJonas Gorski2013-02-211-8/+16
| | | | | | | | To prevent accidential resets ask for confirmation (and default to n). Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 35712
* sysupgrade: clarify online helpJo-Philipp Wich2013-01-021-12/+15
| | | | | | | | Fixes #12346. Signed-off-by: Paul Fertser <fercerpav@gmail.com> SVN-Revision: 34975
* sysupgrade: do not require an extra argument after --restore-backupJo-Philipp Wich2013-01-021-6/+7
| | | | | | | | | | | Neither --create-backup nor --restore-backup need an image name (following the backup filename). Treat them in uniform way. Mostly fixes #12346. Signed-off-by: Paul Fertser <fercerpav@gmail.com> SVN-Revision: 34974
* merge /lib/functions/boot.sh and /lib/functions.shMirko Vogt2012-12-192-2/+2
| | | | SVN-Revision: 34794
* Do not overload mount-call - trying to reduce confusionMirko Vogt2012-12-191-1/+1
| | | | | | | | | | | The behaviour of calling 'mount' differed depending on whether it called the busybox-mount, the mount of util-linux, the mount defined in /lib/functions.sh and /lib/functions/boot.sh /etc/preinit even included /lib/functions.sh and /lib/functions/boot.sh, both re-defining 'mount'. SVN-Revision: 34792
* base-files: provide a sysupgrade -r (--restore-backup) option as convenience ↵Jo-Philipp Wich2012-08-121-0/+12
| | | | | | wrapper for tar -C / -x(v)zf SVN-Revision: 33147
* base-files: fix option parsing of -F/--force parameterJo-Philipp Wich2012-08-091-1/+1
| | | | SVN-Revision: 33075
* base-files: allow wireless ifaces to be part of multiple networksJo-Philipp Wich2012-06-261-4/+9
| | | | SVN-Revision: 32503
* /etc/functions.sh => /lib/functions.shJo-Philipp Wich2012-06-054-5/+5
| | | | SVN-Revision: 32062
* base-files: implement a --force option for sysupgrade to override image ↵Jo-Philipp Wich2012-01-081-2/+11
| | | | | | checks, useful to upgrade old ar71xx installations to current trunk ones SVN-Revision: 29688
* base-files: add -b (--create-backup) option to sysupgrade, which generates a ↵Jo-Philipp Wich2011-12-201-2/+26
| | | | | | backup .tar.gz according to the user settings. This will also be reused by LuCI. SVN-Revision: 29587
* base-files: kill remaining processes after running user hooks (#10461)Jo-Philipp Wich2011-11-191-2/+2
| | | | SVN-Revision: 29256
* base-files: properly handle wifi ifaces with no network attached, useful for ↵Jo-Philipp Wich2011-11-081-3/+5
| | | | | | unmanaged interfaces like used for batman or monitoring SVN-Revision: 28860
* netifd: ensure that a bridge gets created before hostapd needs it, hostapd ↵Felix Fietkau2011-11-041-0/+1
| | | | | | must not attempt to create the bridge by itself SVN-Revision: 28745
* base-files: sysupgrade: kill all but essential processes before starting the ↵Jo-Philipp Wich2011-10-271-0/+5
| | | | | | update SVN-Revision: 28626
* base-files: move network related scripts to a separate package to make the ↵Felix Fietkau2011-10-202-108/+0
| | | | | | transition to netifd easier SVN-Revision: 28495
* base-files: attempt bring up related wifi devices when calling ifup If a ↵Jo-Philipp Wich2011-07-222-16/+48
| | | | | | | | | | | | | | | user invoked /sbin/ifup to bring up an interface, the setup used to fail in case of wireless networks tied to a non-bridged interface definition. Likewise, the bringup of "lan" in the default configuration will reinitialize the bridge but do not re-join the wireless network to it, requiring an extra call to /sbin/wifi (which might not be possible anymore due to a severed link if connected wirelessly). The changeset modifies the "ifup" command to search for related wireless devices and call "wifi up" on them if applicable. This way the commands for wireless and non-wireless interfaces are unified from a cli point of view. The "ifup -a" case has not been changed to keep the logic of the /etc/init.d/network boot sequence. This might be changed later. Solves #9763. SVN-Revision: 27720
* base-files: add -h and --help options to sysupgrade (#9728)Jo-Philipp Wich2011-07-171-1/+4
| | | | SVN-Revision: 27630
* base-files: fix error reporting for unsupported protocols on virtual interfacesJo-Philipp Wich2011-06-071-2/+2
| | | | SVN-Revision: 27132
* adds a --help option to /sbin/wifiFlorian Fainelli2010-12-051-0/+9
| | | | | | Signed-off-by: Sebastian Philipp <sebastian@spawnhost.de> SVN-Revision: 24258
* base-files: - add sysupgrade support for keepfile hints * introduces ↵Jo-Philipp Wich2010-10-051-2/+3
| | | | | | /lib/upgrade/keep.d/ for per-package keepfile lists * introduces /etc/sysupgrade.conf for user defined keepfile hints - prime /lib/upgrade/keep.d/base-files-essential to keep sysupgrade usable for images without opkg - change sysupgrade to build the keepfile list from /lib/upgrade/keep.d/, /etc/sysupgrade.conf and opkg list-changed-conffiles SVN-Revision: 23258
* base-files: sysupgrade: merge info from "opkg list-changed-conffiles" to ↵Jo-Philipp Wich2010-10-051-2/+3
| | | | | | backup file list SVN-Revision: 23233
* base-files: add an experimental "-c" flag which tries to preserve *all* ↵Jo-Philipp Wich2010-09-071-2/+19
| | | | | | changed files in /overlay/etc minus some system files SVN-Revision: 22977
* wifi: fix duplicate ht capabilities in the hostapd config file by clearing ↵Felix Fietkau2010-07-081-4/+13
| | | | | | the list at config load time SVN-Revision: 22099
* base-files: - use add_dns() and remove_dns() for when changing ↵Jo-Philipp Wich2010-05-301-0/+3
| | | | | | resolv.conf.auto for static or dhcp interfaces - force 0644 permissions when creating resolv.conf.auto, fixes dnsmasq permissions denied problem with pppd interfaces - revert dns servers in /sbin/ifdown - bump package revision SVN-Revision: 21638
* base-files, ppp: remove protocol specific cleanup code from /sbin/ifdown and ↵Jo-Philipp Wich2010-05-051-22/+0
| | | | | | move it to protocol stop callbacks SVN-Revision: 21383