关于 Ubuntu 上时不时 SSID 消失的问题
纪念死掉某桌面

关于 Ubuntu 上时不时 SSID 消失的问题(二)

violet posted @ Feb 20, 2017 03:36:24 PM in 胡扯 with tags linux ubuntu , 14745 阅读

问题描述看这个 关于 Ubuntu 上时不时 SSID 消失的问题

本来嘛,这个 bug 复现率不高,于是都拿复现率低来挡回去,懒得修。结果有个同事是神人,能给我 100% 复现,我被他的老大日了一脸,灰头土脸修 bug 了。

找了半天问题,感觉一时半会解决不了,于是加了个 work around 先暂时对付上,我再慢慢看问题。虽然是 wpa_supplicant 挂的问题,我思索了一下,还是写了重启 NetworkManager ,就能管得宽点就宽点吧。

[Unit]
Description=Local system resume actions
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target

[Service]
Type=oneshot
ExecStart=/usr/bin/resume-wpasupplicant.sh

[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target

在 resume-wpasupplicant.sh 里可以乱写一些 debug 的啥啊之类的,反正主要功能也就一句话。

#!/bin/bash

/bin/systemctl restart NetworkManager

把这个加进去 enable 之后让那个同事帮我复现了一下,很好很好,复现率为 0。

然后打包塞进 iso =口=

然后我折腾了整整两天。。。

我的思路:装包还不简单?(打了个包)enable service 还不简单(在黑魔法里加一句)

然而装好后并没有成功,service 还是没有被 enable 起来。

后来问了一下同事,原来打 systemd 相关的包需要 `dh systemd`,需要自动 enable 的话都在 rules 里加上。参考这个 https://wiki.debian.org/Teams/pkg-systemd/Packaging

#!/usr/bin/make -f
%:
	dh $@ --with systemd
override_dh_installinit:
	dh_systemd_enable resume-wpasupplicant.service

所以就是这么个东西了。。。=。=

然后这个包安装上就会自动 enable 相关的 service 了。

先加个 work around 凑合着,下一步仔细看看问题,或者开始刷题=。=

live in maids dubai 说:
Jun 07, 2021 07:44:39 PM

Individuals get satisfied when they see the actual cleaners putting on masks as well as gloves. Apart from, a cleaner must take additional precautions in the event that he/she appointments a thought place. Cleaners should consider whether they’ve place the PPE properly? Have the actual cleaners obtained enough water to be able to mix the actual chemicals towards the right percentage?

MIS Portal 说:
Aug 04, 2022 01:36:04 AM

The Government of Haryana State has designed the School Management Information System for the welfare of Schools in the state. The school staff, teachers, and students have got direct access to the portal through which most of the services easily processed. The Government of Haryana State has designed the School Management Information System for the welfare of Schools in the state. MIS Portal The MIS Portal also referred to as Saksham Haryana Education Portal which is a one-stop website for every need of Schools in Haryana. The New aspirants can utilize this option to apply for their selected school form online by submitting the application form.

AP SSC Assignment Mo 说:
Sep 09, 2022 09:35:46 PM

Department of Government Examinations and Secondary Education Board Andhra Pradesh has conducted the Assignment Exams multiple times in the academic year in Session-1 and Session-2 (Term-1 & Term-2). There are four exams are conducted Assignment-1, Assignment-2, Assignment-3 and Assignment-4. AP SSC Assignment Model Paper Every Class 10th Standard Student Studying in Government & Private Schools in Telugu Medium, English Medium & Urdu Medium can download the AP 10th Assignment Model Paper 2023 with answer solutions for theory, objective and bit questions. Subject experts of the board have designed and introduced the practice question bank for all Part-A, Part-B, Part-C, and Part-D exams.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter